Don't fail outright when a play has an empty hosts list

This commit is contained in:
James Cammarata 2015-06-16 13:55:05 -04:00
commit 4b28a51f25
2 changed files with 1 additions and 3 deletions

View file

@ -120,7 +120,6 @@ class PlaybookExecutor:
if len(batch) == 0:
self._tqm.send_callback('v2_playbook_on_play_start', new_play)
self._tqm.send_callback('v2_playbook_on_no_hosts_matched')
result = 1
break
# restrict the inventory to the hosts in the serialized batch
self._inventory.restrict_to_hosts(batch)