Merge pull request #39206 from cachedout/issue_issue_37174

Ignore empty dicts in highstate outputter
This commit is contained in:
Mike Place 2017-02-07 09:11:35 -07:00 committed by GitHub
commit 2621c119fd

View file

@ -179,7 +179,7 @@ def _format_host(host, data):
# Verify that the needed data is present
data_tmp = {}
for tname, info in six.iteritems(data):
if isinstance(info, dict) and '__run_num__' not in info:
if isinstance(info, dict) and info and '__run_num__' not in info:
err = (u'The State execution failed to record the order '
'in which all states were executed. The state '
'return missing data is:')