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
commit f0008248d4
3 changed files with 2 additions and 3 deletions

View file

@ -79,6 +79,7 @@ def run_commands(module, commands, check_rc=True):
responses = list()
commands = to_commands(module, to_list(commands))
for cmd in to_list(commands):
cmd = module.jsonify(cmd)
rc, out, err = exec_command(module, cmd)
if check_rc and rc != 0:
module.fail_json(msg=err, rc=rc)