mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #34898 from hrumph/list_upgrades_refresh
Stop multiple refreshes during call to pkg.list_upgrades
This commit is contained in:
commit
6ccc27f697
@ -155,7 +155,7 @@ def list_upgrades(refresh=True, **kwargs): # pylint: disable=W0613
|
|||||||
ret = {}
|
ret = {}
|
||||||
for name, data in six.iteritems(get_repo_data().get('repo', {})):
|
for name, data in six.iteritems(get_repo_data().get('repo', {})):
|
||||||
if version(name):
|
if version(name):
|
||||||
latest = latest_version(name)
|
latest = latest_version(name, refresh=False)
|
||||||
if latest:
|
if latest:
|
||||||
ret[name] = latest
|
ret[name] = latest
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
Reference in New Issue
Block a user