mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +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}
|
||||
|
||||
cver = cur_pkgs.get(name, [])
|
||||
if version in cver:
|
||||
if version and version in cver:
|
||||
# The package is installed and is the correct version
|
||||
return {'name': name,
|
||||
'changes': {},
|
||||
|
Loading…
Reference in New Issue
Block a user