Commit 5bbbec9b by Brian Coca

Merge pull request #11301 from…

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
parents 2ad8e7c9 a3857444
...@@ -144,7 +144,8 @@ class Inventory(object): ...@@ -144,7 +144,8 @@ class Inventory(object):
vars_loader.add_directory(self.basedir(), with_subdir=True) vars_loader.add_directory(self.basedir(), with_subdir=True)
else: 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) ] self._vars_plugins = [ x for x in vars_loader.all(self) ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment