mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't pop 'outputter', we expect it further down
Also correctly wrap the output of orchestrate with 'data' key This was put in as a fix for the orchestrate runner in #25521. However, we just needed to wrap the return in 'data' to get it to be stripped automatically. The lack of 'outputter' was causing us to not properly strip the 'data' further down, and the highstate outputter would subsequently barf.
This commit is contained in:
parent
d178315f93
commit
8ae9b66fd9
2 changed files with 1 additions and 6 deletions
|
@ -446,11 +446,6 @@ class AsyncClientMixin(object):
|
|||
except AttributeError:
|
||||
outputter = None
|
||||
|
||||
try:
|
||||
if event.get('return').get('outputter'):
|
||||
event['return'].pop('outputter')
|
||||
except AttributeError:
|
||||
pass
|
||||
# if this is a ret, we have our own set of rules
|
||||
if suffix == 'ret':
|
||||
# Check if ouputter was passed in the return data. If this is the case,
|
||||
|
|
|
@ -112,7 +112,7 @@ def orchestrate(mods, saltenv='base', test=None, exclude=None, pillar=None):
|
|||
test,
|
||||
exclude,
|
||||
pillar=pillar)
|
||||
ret = {minion.opts['id']: running, 'outputter': 'highstate'}
|
||||
ret = {'data': {minion.opts['id']: running}, 'outputter': 'highstate'}
|
||||
return ret
|
||||
|
||||
# Aliases for orchestrate runner
|
||||
|
|
Loading…
Add table
Reference in a new issue