Merge pull request #25626 from basepi/salt.ssh.highstate.outputter.25368

Fix the highstate outputter if 'duration' is not present
This commit is contained in:
Colton Myers 2015-07-22 13:10:57 -06:00
commit 0722694c18

View File

@ -131,7 +131,7 @@ def _format_host(host, data):
# Increment result counts
rcounts.setdefault(ret['result'], 0)
rcounts[ret['result']] += 1
rdurations.append(ret['duration'])
rdurations.append(ret.get('duration', 0))
tcolor = colors['GREEN']
schanged, ctext = _format_changes(ret['changes'])