From e1f2cb1d37f91b304427c1f159e42e0f142eca04 Mon Sep 17 00:00:00 2001 From: Jacopo Date: Tue, 30 Dec 2014 20:17:17 +1000 Subject: [PATCH] Removed early check for empty inventory --- bin/ansible-playbook | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/ansible-playbook b/bin/ansible-playbook index d25a3710d87..485f2e1f896 100755 --- a/bin/ansible-playbook +++ b/bin/ansible-playbook @@ -167,8 +167,6 @@ def main(args): inventory = ansible.inventory.Inventory(options.inventory, vault_password=vault_pass) 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 for playbook in args: