mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
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:
commit
0722694c18
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user