mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
hide magic variables used bin/ansible output
'verbose_override' and 'verbose_always'
This commit is contained in:
parent
3a635d2d26
commit
dd9919342b
1 changed files with 4 additions and 0 deletions
|
@ -322,6 +322,10 @@ class CliRunnerCallbacks(DefaultRunnerCallbacks):
|
||||||
super(CliRunnerCallbacks, self).on_failed(host, res, ignore_errors=ignore_errors)
|
super(CliRunnerCallbacks, self).on_failed(host, res, ignore_errors=ignore_errors)
|
||||||
|
|
||||||
def on_ok(self, host, res):
|
def on_ok(self, host, res):
|
||||||
|
# hide magic variables used for ansible-playbook
|
||||||
|
res.pop('verbose_override', None)
|
||||||
|
res.pop('verbose_always', None)
|
||||||
|
|
||||||
self._on_any(host,res)
|
self._on_any(host,res)
|
||||||
super(CliRunnerCallbacks, self).on_ok(host, res)
|
super(CliRunnerCallbacks, self).on_ok(host, res)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue