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:
Nathaniel Case 2017-02-25 21:14:40 -05:00 committed by Peter Sprygada
parent ca21d09483
commit 9b9ed59d98
6 changed files with 5 additions and 29 deletions

View file

@ -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')