mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
Vyos config fixes (#21862)
* Fix vyos signatures to match new versions * Fix test cases referring to 'updates' instead of 'commands' * I think this is an artifact of `connection: network_cli`?
This commit is contained in:
parent
ca21d09483
commit
9b9ed59d98
6 changed files with 5 additions and 29 deletions
|
@ -78,7 +78,7 @@ def load_config(module, commands, commit=False, comment=None):
|
|||
module.fail_json(msg='unable to enter configuration mode', output=err)
|
||||
|
||||
for cmd in to_list(commands):
|
||||
rc, out, err = exec_command(module, cmd, check_rc=False)
|
||||
rc, out, err = exec_command(module, cmd)
|
||||
if rc != 0:
|
||||
# discard any changes in case of failure
|
||||
exec_command(module, 'exit discard')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue