Skip to content

Commit

Permalink
Fix vyos cli prompt issues (ansible#55589)
Browse files Browse the repository at this point in the history
Signed-off-by: NilashishC <[email protected]>
  • Loading branch information
NilashishC authored May 7, 2019
1 parent 86e98c5 commit 7608bc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/plugins/action/vyos.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def run(self, tmp=None, task_vars=None):

conn = Connection(socket_path)
out = conn.get_prompt()
while to_text(out, errors='surrogate_then_replace').strip().endswith(')#'):
while to_text(out, errors='surrogate_then_replace').strip().endswith('#'):
display.vvvv('wrong context, sending exit to device', self._play_context.remote_addr)
conn.send_command('abort')
conn.send_command('exit discard')
out = conn.get_prompt()

result = super(ActionModule, self).run(task_vars=task_vars)
Expand Down

0 comments on commit 7608bc8

Please sign in to comment.