eos: cmd should be item (#17540)
Was changed during
7fe64ef9b8
however not all look variables were updated.
This commit is contained in:
parent
07756a4265
commit
e326da28ff
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue