eos: cmd should be item (#17540)

Was changed during
7fe64ef9b8
however not all look variables were updated.
pull/17355/head
John R Barker 8 years ago committed by GitHub
parent 07756a4265
commit e326da28ff

@ -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)

Loading…
Cancel
Save