mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
eos: cmd should be item (#17540)
Was changed during
7fe64ef9b8
however not all look variables were updated.
This commit is contained in:
@@ -317,7 +317,7 @@ def prepare_commands(commands):
|
||||
jsonify = lambda x: '%s | json' % x
|
||||
for item in to_list(commands):
|
||||
if item.output == 'json':
|
||||
cmd = jsonify(cmd)
|
||||
cmd = jsonify(item)
|
||||
elif item.command.endswith('| json'):
|
||||
item.output = 'json'
|
||||
cmd = str(item)
|
||||
|
||||
Reference in New Issue
Block a user