mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07: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:
parent
13dc02d49d
commit
f0008248d4
3 changed files with 2 additions and 3 deletions
|
@ -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(' ', '_')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue