From badc922c73e12eff21fd84a8b004f8997018367e Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 29 Feb 2016 16:18:06 -0500 Subject: [PATCH] added warning for when host file doesn't exist fixes #14692 --- lib/ansible/inventory/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/inventory/__init__.py b/lib/ansible/inventory/__init__.py index d10a731faa..c984546621 100644 --- a/lib/ansible/inventory/__init__.py +++ b/lib/ansible/inventory/__init__.py @@ -133,6 +133,8 @@ class Inventory(object): if not self.parser: # should never happen, but JIC 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) ]