mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Bugfix: version_cmp crashes in CLI if there are versions, that looks like integer or float.
This commit is contained in:
parent
b869a92eea
commit
046ef44ca3
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue