mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #22873 from thatch45/type_check
Type check the version since it will often be numeric
This commit is contained in:
commit
5bdbd08bbd
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ def install(name=None,
|
|||
if pkgs is None and kwargs.get('version') and len(pkg_params) == 1:
|
||||
# Only use the 'version' param if 'name' was not specified as a
|
||||
# comma-separated list
|
||||
pkg_params = {name: kwargs.get('version')}
|
||||
pkg_params = {name: str(kwargs.get('version'))}
|
||||
targets = []
|
||||
for param, version_num in pkg_params.iteritems():
|
||||
if version_num is None:
|
||||
|
|
Loading…
Add table
Reference in a new issue