don't filter if return is not a dict

This commit is contained in:
Daniel Wallace 2017-10-13 09:54:07 -06:00
parent d89c317d96
commit f749cafa25
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

View file

@ -863,8 +863,8 @@ def highstate(test=None, queue=False, **kwargs):
finally:
st_.pop_active()
if __salt__['config.option']('state_data', '') == 'terse' or \
kwargs.get('terse'):
if isinstance(ret, dict) and (__salt__['config.option']('state_data', '') == 'terse' or \
kwargs.get('terse')):
ret = _filter_running(ret)
serial = salt.payload.Serial(__opts__)