mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
fix iosxr commands to encode json (#23346)
the command dict in the iosxr module_utils wasn't encoding the request to json. this patch will fix that problem
This commit is contained in:
committed by
John R Barker
parent
13dc02d49d
commit
f0008248d4
@@ -45,8 +45,7 @@ class TestIosxrCommandModule(TestIosxrModule):
|
||||
|
||||
for item in commands:
|
||||
try:
|
||||
obj = json.loads(item)
|
||||
command = obj['command']
|
||||
command = item['command']
|
||||
except ValueError:
|
||||
command = item
|
||||
filename = str(command).replace(' ', '_')
|
||||
|
||||
Reference in New Issue
Block a user