Commit e1f2cb1d by Jacopo

Removed early check for empty inventory

parent 8760392a
...@@ -167,8 +167,6 @@ def main(args): ...@@ -167,8 +167,6 @@ 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:
raise errors.AnsibleError("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