mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Bugfix: when only one package, no dict is returned. Still upgrade_available should return boolean.
This commit is contained in:
parent
7eb5f19cb4
commit
ad87e719d6
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ def upgrade_available(name):
|
|||
|
||||
salt '*' pkg.upgrade_available <package name>
|
||||
'''
|
||||
return latest_version(name).get(name) is not None
|
||||
return not not latest_version(name)
|
||||
|
||||
|
||||
def version(*names, **kwargs):
|
||||
|
|
Loading…
Add table
Reference in a new issue