Ignore empty dicts in highstate outputter

Closes #37174
This commit is contained in:
Mike Place 2017-02-06 16:25:48 -07:00
parent 7bed68743e
commit be31e0559c
No known key found for this signature in database
GPG key ID: 9136F4F13705CFD3

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:')