Simplify setting success when there are no pkg updates.

This commit is contained in:
Thayne Harbaugh 2015-10-27 22:37:42 -06:00 committed by rallytime
parent cd58165138
commit 227ddbcb24

View File

@ -1808,12 +1808,10 @@ def uptodate(name, refresh=False, **kwargs):
if updated.get('result') is False:
ret.update(updated)
elif updated or {} == updated:
else:
ret['changes'] = updated
ret['comment'] = 'Upgrade successful.'
ret['result'] = True
else:
ret['comment'] = 'Upgrade failed.'
return ret