mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fixed salt-run outputter handling.
This commit is contained in:
parent
0589ba8dce
commit
e419650bf1
@ -233,7 +233,12 @@ class Runner(RunnerClient):
|
||||
|
||||
# otherwise run it in the main process
|
||||
ret = self.cmd_sync(low)
|
||||
display_output(ret, opts=self.opts)
|
||||
if isinstance(ret, dict) and set(ret) == set(('data', 'outputter')):
|
||||
outputter = ret['outputter']
|
||||
ret = ret['data']
|
||||
else:
|
||||
outputter = None
|
||||
display_output(ret, outputter, self.opts)
|
||||
except salt.exceptions.SaltException as exc:
|
||||
ret = '{0}'.format(exc)
|
||||
if not self.opts.get('quiet', False):
|
||||
|
Loading…
Reference in New Issue
Block a user