Skip to content

Commit

Permalink
Network action plugin misusing display.debug (ansible#21995)
Browse files Browse the repository at this point in the history
* The correct answer was in fact display.vvvv
  • Loading branch information
Qalthos authored Feb 27, 2017
1 parent 6cb9f2b commit 6d9fb4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/action/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def run(self, tmp=None, task_vars=None):
# enable mode and not config module
rc, out, err = connection.exec_command('prompt()')
while str(out).strip().endswith(')#'):
display.debug('wrong context, sending exit to device', self._play_context.remote_addr)
display.vvvv('wrong context, sending exit to device', self._play_context.remote_addr)
connection.exec_command('exit')
rc, out, err = connection.exec_command('prompt()')

Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/plugins/action/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def run(self, tmp=None, task_vars=None):
# enable mode and not config module
rc, out, err = connection.exec_command('prompt()')
while str(out).strip().endswith(')#'):
display.debug('wrong context, sending exit to device', self._play_context.remote_addr)
display.vvvv('wrong context, sending exit to device', self._play_context.remote_addr)
connection.exec_command('exit')
rc, out, err = connection.exec_command('prompt()')

Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/plugins/action/vyos.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def run(self, tmp=None, task_vars=None):
# enable mode and not config module
rc, out, err = connection.exec_command('prompt()')
while str(out).strip().endswith('#'):
display.debug('wrong context, sending exit to device', self._play_context.remote_addr)
display.vvvv('wrong context, sending exit to device', self._play_context.remote_addr)
connection.exec_command('exit')
rc, out, err = connection.exec_command('prompt()')

Expand Down

0 comments on commit 6d9fb4d

Please sign in to comment.