Fix iosxr get_prompt return value failure (#32902)

This commit is contained in:
Ganesh Nalawade 2017-11-14 21:11:10 +05:30 committed by GitHub
parent 49a1472656
commit 9cedb89644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ class ActionModule(_ActionModule):
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')
rc, out, err = conn.get_prompt()
out = conn.get_prompt()
result = super(ActionModule, self).run(tmp, task_vars)