mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
committed by
John R Barker
parent
b3b11fbce2
commit
8d962209f4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user