Merge "Don't try to stream from winrm connections"

This commit is contained in:
Zuul 2020-04-22 14:18:02 +00:00 committed by Gerrit Code Review
commit f7fcc24a6e
1 changed files with 3 additions and 0 deletions

View File

@ -267,6 +267,9 @@ class CallbackModule(default.CallbackModule):
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
if play_vars[host].get('ansible_connection') in ('kubectl', ):
# Stream from the forwarded port on kubectl conns
port = play_vars[host]['zuul']['resources'][