mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
parent
b3b11fbce2
commit
8d962209f4
2 changed files with 3 additions and 2 deletions
|
@ -261,7 +261,9 @@ def prepare_config(commands):
|
|||
def prepare_commands(commands):
|
||||
""" prepare_commands """
|
||||
|
||||
jsonify = lambda x: '%s | json' % x
|
||||
def jsonify(x):
|
||||
return '%s | json' % x
|
||||
|
||||
for cmd in to_list(commands):
|
||||
if cmd.output == 'json':
|
||||
cmd.command_string = jsonify(cmd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue