mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #25521 from cachedout/orch_outputter
Fix outputter for state.orch
This commit is contained in:
commit
9e19142c35
@ -438,7 +438,16 @@ class AsyncClientMixin(object):
|
|||||||
if suffix in ('new',):
|
if suffix in ('new',):
|
||||||
return
|
return
|
||||||
|
|
||||||
outputter = self.opts.get('output', event.get('outputter', None))
|
try:
|
||||||
|
outputter = self.opts.get('output', event.get('outputter', None) or event.get('return').get('outputter'))
|
||||||
|
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 this is a ret, we have our own set of rules
|
||||||
if suffix == 'ret':
|
if suffix == 'ret':
|
||||||
# Check if ouputter was passed in the return data. If this is the case,
|
# 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,
|
test,
|
||||||
exclude,
|
exclude,
|
||||||
pillar=pillar)
|
pillar=pillar)
|
||||||
ret = {minion.opts['id']: running}
|
ret = {minion.opts['id']: running, 'outputter': 'highstate'}
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
# Aliases for orchestrate runner
|
# Aliases for orchestrate runner
|
||||||
|
Loading…
Reference in New Issue
Block a user