mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Pass saltenv to call to latest_version in list_upgrades function
This commit is contained in:
parent
182d9a5bf8
commit
3a6152b626
@ -160,7 +160,7 @@ def list_upgrades(refresh=True, saltenv='base', **kwargs): # pylint: disable=W0
|
||||
ret = {}
|
||||
for name, data in six.iteritems(get_repo_data(saltenv).get('repo', {})):
|
||||
if version(name):
|
||||
latest = latest_version(name, refresh=False)
|
||||
latest = latest_version(name, refresh=False, saltenv=saltenv)
|
||||
if latest:
|
||||
ret[name] = latest
|
||||
return ret
|
||||
|
Loading…
Reference in New Issue
Block a user