mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Merge pull request #17426 from privateip/nxos
fixes issue when piping commands through json with output not specifed
This commit is contained in:
@@ -283,4 +283,6 @@ def prepare_commands(commands):
|
||||
for cmd in to_list(commands):
|
||||
if cmd.output == 'json':
|
||||
cmd.command_string = jsonify(cmd)
|
||||
if cmd.command.endswith('| json'):
|
||||
cmd.output = 'json'
|
||||
yield cmd
|
||||
|
||||
Reference in New Issue
Block a user