Merge pull request #28543 from gtmanfred/2015.8

clean up changes for pkg.uptodate and supervisord.dead
This commit is contained in:
Mike Place 2015-11-04 07:49:46 -07:00
commit bf4f7cdc4b
2 changed files with 3 additions and 2 deletions

View File

@ -1810,8 +1810,8 @@ def uptodate(name, refresh=False, **kwargs):
if updated.get('result') is False:
ret.update(updated)
else:
ret['changes'] = updated
ret['comment'] = 'Upgrade successful.'
ret['changes'] = updated.get('changes', {})
ret['comment'] = 'Upgrade ran successfully.'
ret['result'] = True
return ret

View File

@ -332,6 +332,7 @@ def dead(name,
bin_env=bin_env
)}
ret.update(_check_error(result, comment))
ret['changes'][name] = comment
log.debug(six.text_type(result))
return ret