1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

added warning for when host file doesn't exist

fixes #14692
This commit is contained in:
Brian Coca 2016-02-29 16:18:06 -05:00
parent 82d6a83cca
commit badc922c73

View file

@ -133,6 +133,8 @@ class Inventory(object):
if not self.parser: if not self.parser:
# should never happen, but JIC # should never happen, but JIC
raise AnsibleError("Unable to parse %s as an inventory source" % host_list) raise AnsibleError("Unable to parse %s as an inventory source" % host_list)
else:
display.warning("Host file not found: %s" % to_unicode(host_list))
self._vars_plugins = [ x for x in vars_loader.all(self) ] self._vars_plugins = [ x for x in vars_loader.all(self) ]