mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-01 13:59:09 -07:00
Add diff capability in vyos edit_config (#41950)
* Add diff capability in vyos edit_config Fetch onbox diff within edit_config cliconf plugin and return it in response * Remove diff returned from ios edit_config * Fix CI failure * More CI fixes
This commit is contained in:
parent
e60da3feaf
commit
9acb5780bc
4 changed files with 25 additions and 29 deletions
|
@ -133,10 +133,9 @@ def load_config(module, commands, commit=False, comment=None):
|
|||
connection = get_connection(module)
|
||||
|
||||
try:
|
||||
resp = connection.edit_config(candidate=commands, commit=commit, diff=module._diff, comment=comment)
|
||||
resp = connection.edit_config(candidate=commands, commit=commit, comment=comment)
|
||||
resp = json.loads(resp)
|
||||
diff_config = resp.get('diff')
|
||||
except ConnectionError as exc:
|
||||
module.fail_json(msg=to_text(exc))
|
||||
|
||||
return diff_config
|
||||
return resp.get('diff')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue