Merge pull request #22873 from thatch45/type_check

Type check the version since it will often be numeric
This commit is contained in:
Justin Findlay 2015-04-20 20:38:11 -06:00
commit 5bdbd08bbd

View file

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