mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Simplify setting success when there are no pkg updates.
This commit is contained in:
parent
cd58165138
commit
227ddbcb24
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue