mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00: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:
committed by
Peter Sprygada
parent
ca21d09483
commit
9b9ed59d98
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user