mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00: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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user