diff options
author | Zuul <zuul@review.opendev.org> | 2022-04-12 15:00:17 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-04-12 15:00:17 +0000 |
commit | 3f594f0721cb74fed015fef9bd0da55db20661b1 (patch) | |
tree | 5992435807f109a1f7bffcd8f91acfeb3a103489 /zuul/ansible | |
parent | 6dd51023742ff144b05cdbf02fe9e046cea46c59 (diff) | |
parent | 1607143b213db0d63ab93389dda9939d3bcde7ec (diff) | |
download | zuul-3f594f0721cb74fed015fef9bd0da55db20661b1.tar.gz |
Merge "Don't stream async tasks"
Diffstat (limited to 'zuul/ansible')
-rw-r--r-- | zuul/ansible/base/callback/zuul_stream.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/zuul/ansible/base/callback/zuul_stream.py b/zuul/ansible/base/callback/zuul_stream.py index be407c03d..09cc16621 100644 --- a/zuul/ansible/base/callback/zuul_stream.py +++ b/zuul/ansible/base/callback/zuul_stream.py @@ -255,6 +255,12 @@ class CallbackModule(default.CallbackModule): else: task_name = task.get_name().strip() + if task.loop: + # Don't try to stream from loops + return + if task.async_val: + # Don't try to stream from async tasks + return if task.action in ('command', 'shell'): play_vars = self._play._variable_manager._hostvars @@ -270,9 +276,6 @@ class CallbackModule(default.CallbackModule): if ip in ('localhost', '127.0.0.1'): # Don't try to stream from localhost continue - if task.loop: - # Don't try to stream from loops - continue if play_vars[host].get('ansible_connection') in ('winrm',): # The winrm connections don't support streaming for now continue |