mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix eos integration test failure (#33407)
Fixes #33406 Fixes #33405 * Fix typo in network_cli for sendonly * Send `abort` to remote device in case configuration fails * Fix indentation issue in eos_static_route integration test * Revert network_cli change
This commit is contained in:
@@ -108,7 +108,7 @@ class ActionModule(_ActionModule):
|
||||
out = conn.get_prompt()
|
||||
while '(config' in to_text(out, errors='surrogate_then_replace').strip():
|
||||
display.vvvv('wrong context, sending exit to device', self._play_context.remote_addr)
|
||||
conn.send_command('exit')
|
||||
conn.send_command('abort')
|
||||
out = conn.get_prompt()
|
||||
|
||||
result = super(ActionModule, self).run(tmp, task_vars)
|
||||
|
||||
Reference in New Issue
Block a user