Allow vars_files sequences without a default

parent 457cdb2b
...@@ -275,7 +275,7 @@ class Play(object): ...@@ -275,7 +275,7 @@ class Play(object):
self.playbook.callbacks.on_not_import_for_host(host, filename4) self.playbook.callbacks.on_not_import_for_host(host, filename4)
if found: if found:
break break
if not found: if not found and host is not None:
raise errors.AnsibleError( raise errors.AnsibleError(
"%s: FATAL, no files matched for vars_files import sequence: %s" % (host, sequence) "%s: FATAL, no files matched for vars_files import sequence: %s" % (host, sequence)
) )
......
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