mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
fix nxos edit_config for httpapi and have uniform load_config (#41358)
* fix nxos load_config for httpapi and migrate to cliconf Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * add comment Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * address review comment Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * address review comment Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -164,8 +164,7 @@ class Cli:
|
||||
msgs = []
|
||||
try:
|
||||
responses = connection.edit_config(config)
|
||||
out = json.loads(responses)[1:-1]
|
||||
msg = out
|
||||
msg = json.loads(responses)
|
||||
except ConnectionError as e:
|
||||
code = getattr(e, 'code', 1)
|
||||
message = getattr(e, 'err', e)
|
||||
|
||||
Reference in New Issue
Block a user