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:
Peter Sprygada 2017-04-06 10:44:21 -04:00 committed by John R Barker
parent 13dc02d49d
commit f0008248d4
3 changed files with 2 additions and 3 deletions

View file

@ -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(' ', '_')