mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #11301 from msabramo/include_inventory_file_in_unable_to_find_inventory_file_error_msg
Add inventory file to "Unable to find" error msg
This commit is contained in:
commit
5bbbec9b61
1 changed files with 2 additions and 1 deletions
|
@ -144,7 +144,8 @@ class Inventory(object):
|
|||
|
||||
vars_loader.add_directory(self.basedir(), with_subdir=True)
|
||||
else:
|
||||
raise errors.AnsibleError("Unable to find an inventory file, specify one with -i ?")
|
||||
raise errors.AnsibleError("Unable to find an inventory file (%s), "
|
||||
"specify one with -i ?" % host_list)
|
||||
|
||||
self._vars_plugins = [ x for x in vars_loader.all(self) ]
|
||||
|
||||
|
|
Loading…
Reference in a new issue