Network action plugin misusing display.debug (#21995)

* The correct answer was in fact display.vvvv
pull/22012/head
Nathaniel Case 8 years ago committed by GitHub
parent 6cb9f2bf65
commit 6d9fb4d012

@ -79,7 +79,7 @@ class ActionModule(_ActionModule):
# 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()')

@ -87,7 +87,7 @@ class ActionModule(_ActionModule):
# 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()')

@ -73,7 +73,7 @@ class ActionModule(_ActionModule):
# 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()')

Loading…
Cancel
Save