Commit 771325c5 by Brian Coca

Merge pull request #9913 from dedalusj/devel

Removed early check for empty inventory
parents ef18468e 8dcffaf5
...@@ -168,7 +168,7 @@ def main(args): ...@@ -168,7 +168,7 @@ def main(args):
inventory = ansible.inventory.Inventory(options.inventory, vault_password=vault_pass) inventory = ansible.inventory.Inventory(options.inventory, vault_password=vault_pass)
inventory.subset(options.subset) inventory.subset(options.subset)
if len(inventory.list_hosts()) == 0: if len(inventory.list_hosts()) == 0:
raise errors.AnsibleError("provided hosts list is empty") utils.warning("provided hosts list is empty")
# run all playbooks specified on the command line # run all playbooks specified on the command line
for playbook in args: for playbook in args:
......
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