mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ def list_upgrades(refresh=True, **kwargs): # pylint: disable=W0613
|
|||
ret = {}
|
||||
for name, data in six.iteritems(get_repo_data().get('repo', {})):
|
||||
if version(name):
|
||||
latest = latest_version(name)
|
||||
latest = latest_version(name, refresh=False)
|
||||
if latest:
|
||||
ret[name] = latest
|
||||
return ret
|
||||
|
|
Loading…
Add table
Reference in a new issue