mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Simplify setting success when there are no pkg updates.
This commit is contained in:
parent
cd58165138
commit
227ddbcb24
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user