mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 18:04:02 -07:00
Fixing more v2 issues with integration tests
This commit is contained in:
parent
6f5d18a20e
commit
bbd08cd0e2
7 changed files with 58 additions and 25 deletions
|
@ -70,7 +70,10 @@ class PlaybookExecutor:
|
|||
|
||||
for batch in self._get_serialized_batches(new_play):
|
||||
if len(batch) == 0:
|
||||
raise AnsibleError("No hosts matched the list specified in the play", obj=play._ds)
|
||||
self._tqm._callback.playbook_on_play_start(new_play.name)
|
||||
self._tqm._callback.playbook_on_no_hosts_matched()
|
||||
result = 0
|
||||
break
|
||||
# restrict the inventory to the hosts in the serialized batch
|
||||
self._inventory.restrict_to_hosts(batch)
|
||||
# and run it...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue