eos: cmd should be item (#17540)

Was changed during
7fe64ef9b8
however not all look variables were updated.
This commit is contained in:
John R Barker 2016-09-13 17:17:35 +01:00 committed by GitHub
parent 07756a4265
commit e326da28ff

View file

@ -317,7 +317,7 @@ def prepare_commands(commands):
jsonify = lambda x: '%s | json' % x jsonify = lambda x: '%s | json' % x
for item in to_list(commands): for item in to_list(commands):
if item.output == 'json': if item.output == 'json':
cmd = jsonify(cmd) cmd = jsonify(item)
elif item.command.endswith('| json'): elif item.command.endswith('| json'):
item.output = 'json' item.output = 'json'
cmd = str(item) cmd = str(item)