-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix exception in unixy callback v2_runner_retry #58801
Conversation
@@ -236,6 +236,6 @@ def v2_playbook_on_start(self, playbook): | |||
|
|||
def v2_runner_retry(self, result): | |||
msg = " Retrying... (%d of %d)" % (result._result['attempts'], result._result['retries']) | |||
if self._run_is_verbose(result, verbosity=2): | |||
if self._display.verbosity > 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if self._display.verbosity > 1: | |
if self._run_is_verbose(result): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with this suggestion, thank you for submitting the patch @jpic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done !
Note that line 227 there is self._display.verbosity > 3
https://github.com/ansible/ansible/pull/58801/files#diff-bfc0fb65ff63d5ae485526877e282f97R227
Have a great day
This fixes the warning: [WARNING]: Failure using method (v2_runner_retry) in callback plugin (<ansible.plugins.callback.unixymdv.CallbackModule object at 0x7fb4fd4eeef0>): _run_is_verbose() got an unexpected keyword argument 'verbosity'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shipit
shipit
|
This fixes the warning:
SUMMARY
Fixes a little exception, probably on code that needed update
ISSUE TYPE
COMPONENT NAME
unixy callback plugin
ADDITIONAL INFORMATION