Pass saltenv to call to latest_version in list_upgrades function

This commit is contained in:
Michael Walton 2016-08-12 15:52:16 -04:00
parent 182d9a5bf8
commit 3a6152b626

View File

@ -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