Bugfix: version_cmp crashes in CLI if there are versions, that looks like integer or float.

This commit is contained in:
Bo Maryniuk 2016-04-26 11:27:56 +02:00
parent b869a92eea
commit 046ef44ca3

View file

@ -362,7 +362,7 @@ def version_cmp(ver1, ver2):
salt '*' pkg.version_cmp '0.2-001' '0.2.0.1-002'
'''
return __salt__['lowpkg.version_cmp'](ver1, ver2)
return __salt__['lowpkg.version_cmp'](str(ver1), str(ver2))
def list_pkgs(versions_as_list=False, **kwargs):