Network action plugin misusing display.debug (#21995)

* The correct answer was in fact display.vvvv
This commit is contained in:
Nathaniel Case 2017-02-27 12:34:31 -05:00 committed by GitHub
parent 6cb9f2bf65
commit 6d9fb4d012
3 changed files with 3 additions and 3 deletions

View file

@ -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()')

View file

@ -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()')

View file

@ -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()')