mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #5183 from sibsibsib/develop
fixed: TypeError in pkg._find_install_targets when version is None
This commit is contained in:
commit
46980febac
@ -109,7 +109,7 @@ def _find_install_targets(name=None, version=None, pkgs=None, sources=None):
|
|||||||
desired = {name: version}
|
desired = {name: version}
|
||||||
|
|
||||||
cver = cur_pkgs.get(name, [])
|
cver = cur_pkgs.get(name, [])
|
||||||
if version in cver:
|
if version and version in cver:
|
||||||
# The package is installed and is the correct version
|
# The package is installed and is the correct version
|
||||||
return {'name': name,
|
return {'name': name,
|
||||||
'changes': {},
|
'changes': {},
|
||||||
|
Loading…
Reference in New Issue
Block a user