diff options
author | Dag Wieers <dag@wieers.com> | 2016-03-21 10:10:58 +0100 |
---|---|---|
committer | Brian Coca <bcoca@users.noreply.github.com> | 2016-11-17 19:30:42 -0500 |
commit | 2a8914e496ce9a1fbeac6d08ad9c9c25171fdcf0 (patch) | |
tree | 9d50753d5c4e4a355382c05b7f9223b8d48c4f03 | |
parent | cd6f577d91f4b06f80f8b49536db237d1f5c2b82 (diff) | |
download | ansible-2a8914e496ce9a1fbeac6d08ad9c9c25171fdcf0.tar.gz |
Reset VT100 attributes in case we get unexpected output
-rw-r--r-- | lib/ansible/plugins/callback/dense.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/plugins/callback/dense.py b/lib/ansible/plugins/callback/dense.py index 99cb279d51..5c0540e71b 100644 --- a/lib/ansible/plugins/callback/dense.py +++ b/lib/ansible/plugins/callback/dense.py @@ -349,6 +349,7 @@ class CallbackModule_dense(CallbackModule_default): # Write the next task on screen (behind the prompt is the previous output) sys.stdout.write('%s %d.' % (self.type, self.count[self.type])) + sys.stdout.write(v100.reset) sys.stdout.flush() def v2_playbook_on_handler_task_start(self, task): @@ -371,6 +372,7 @@ class CallbackModule_dense(CallbackModule_default): # Write the next task on screen (behind the prompt is the previous output) sys.stdout.write('%s %d.' % (self.type, self.count[self.type])) + sys.stdout.write(v100.reset) sys.stdout.flush() def v2_playbook_on_cleanup_task_start(self, task): |