Network action plugin misusing display.debug (#21995)
* The correct answer was in fact display.vvvv
This commit is contained in:
parent
6cb9f2bf65
commit
6d9fb4d012
3 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ class ActionModule(_ActionModule):
|
||||||
# enable mode and not config module
|
# enable mode and not config module
|
||||||
rc, out, err = connection.exec_command('prompt()')
|
rc, out, err = connection.exec_command('prompt()')
|
||||||
while str(out).strip().endswith(')#'):
|
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')
|
connection.exec_command('exit')
|
||||||
rc, out, err = connection.exec_command('prompt()')
|
rc, out, err = connection.exec_command('prompt()')
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ class ActionModule(_ActionModule):
|
||||||
# enable mode and not config module
|
# enable mode and not config module
|
||||||
rc, out, err = connection.exec_command('prompt()')
|
rc, out, err = connection.exec_command('prompt()')
|
||||||
while str(out).strip().endswith(')#'):
|
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')
|
connection.exec_command('exit')
|
||||||
rc, out, err = connection.exec_command('prompt()')
|
rc, out, err = connection.exec_command('prompt()')
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ class ActionModule(_ActionModule):
|
||||||
# enable mode and not config module
|
# enable mode and not config module
|
||||||
rc, out, err = connection.exec_command('prompt()')
|
rc, out, err = connection.exec_command('prompt()')
|
||||||
while str(out).strip().endswith('#'):
|
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')
|
connection.exec_command('exit')
|
||||||
rc, out, err = connection.exec_command('prompt()')
|
rc, out, err = connection.exec_command('prompt()')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue