1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Disallow running async tasks with lookup plugins

Fixes #2897
This commit is contained in:
James Cammarata 2013-08-21 16:43:12 -05:00
parent e09ce0a3a7
commit 978af89175

View file

@ -458,6 +458,9 @@ class Runner(object):
# executing using with_items, so make multiple calls
# TODO: refactor
if self.background > 0:
raise errors.AnsibleError("lookup plugins (with_*) cannot be used with async tasks")
aggregrate = {}
all_comm_ok = True
all_changed = False