mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-05 07:54:00 -07:00
Fix NX-API json handling (#26716)
This commit is contained in:
parent
cde36b883c
commit
f3acf9c929
1 changed files with 1 additions and 3 deletions
|
@ -375,11 +375,9 @@ def to_command(module, commands):
|
||||||
|
|
||||||
commands = transform(to_list(commands))
|
commands = transform(to_list(commands))
|
||||||
|
|
||||||
for index, item in enumerate(commands):
|
for item in commands:
|
||||||
if is_json(item['command']):
|
if is_json(item['command']):
|
||||||
item['output'] = 'json'
|
item['output'] = 'json'
|
||||||
elif is_text(item['command']):
|
|
||||||
item['output'] = 'text'
|
|
||||||
|
|
||||||
return commands
|
return commands
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue