mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix outputter detection in jobs.lookup_jid runner
The outputter detection was always failing because `data` is the return from the `jobs.list_job` runner, which has an extra dictionary level at the top.
This commit is contained in:
parent
422441505d
commit
6509aa9089
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ def lookup_jid(jid,
|
|||
try:
|
||||
# Check if the return data has an 'out' key. We'll use that as the
|
||||
# outputter in the absence of one being passed on the CLI.
|
||||
outputter = data[next(iter(data))].get('out')
|
||||
outputter = returns[next(iter(returns))].get('out')
|
||||
except (StopIteration, AttributeError):
|
||||
outputter = None
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue