From ded0b6ed837c5bdbf4e12b9e216dbc282d108bd0 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Mon, 30 Oct 2017 10:31:42 -0400 Subject: [PATCH] Change the ssh+sudo debug messages to vvv for easier troubleshooting in awx+tower --- lib/ansible/plugins/connection/ssh.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/plugins/connection/ssh.py b/lib/ansible/plugins/connection/ssh.py index 115ce28e80..2890795e45 100644 --- a/lib/ansible/plugins/connection/ssh.py +++ b/lib/ansible/plugins/connection/ssh.py @@ -770,23 +770,23 @@ class Connection(ConnectionBase): if states[state] == 'awaiting_escalation': if self._flags['become_success']: - display.debug('Escalation succeeded') + display.vvv('Escalation succeeded') self._flags['become_success'] = False state += 1 elif self._flags['become_error']: - display.debug('Escalation failed') + display.vvv('Escalation failed') self._terminate_process(p) self._flags['become_error'] = False raise AnsibleError('Incorrect %s password' % self._play_context.become_method) elif self._flags['become_nopasswd_error']: - display.debug('Escalation requires password') + display.vvv('Escalation requires password') self._terminate_process(p) self._flags['become_nopasswd_error'] = False raise AnsibleError('Missing %s password' % self._play_context.become_method) elif self._flags['become_prompt']: # This shouldn't happen, because we should see the "Sorry, # try again" message first. - display.debug('Escalation prompt repeated') + display.vvv('Escalation prompt repeated') self._terminate_process(p) self._flags['become_prompt'] = False raise AnsibleError('Incorrect %s password' % self._play_context.become_method)