mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Get more useful output from stateful commands
This fixes #23709 Signed-off-by: Mathieu Le Marec - Pasquet <kiorky@cryptelium.net>
This commit is contained in:
parent
be7c7ef3fd
commit
c70690969e
1 changed files with 3 additions and 1 deletions
|
@ -229,11 +229,13 @@ def _reinterpreted_state(state):
|
|||
key, val = item.split('=')
|
||||
data[key] = val
|
||||
except ValueError:
|
||||
return _failout(
|
||||
state = _failout(
|
||||
state,
|
||||
'Failed parsing script output! '
|
||||
'Stdout must be JSON or a line of name=value pairs.'
|
||||
)
|
||||
state['changes'].update(ret)
|
||||
return state
|
||||
|
||||
changed = _is_true(data.get('changed', 'no'))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue