mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix version check, fix extracting Major and Minor versions from __version__
This commit is contained in:
parent
3c3028f347
commit
96cf024e63
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ from salt.version import (
|
|||
)
|
||||
# is there not SaltStackVersion.current() to get
|
||||
# the version of the salt running this code??
|
||||
CUR_VER = SaltStackVersion(__version__[0], __version__[1])
|
||||
_version_ary = __version__.split('.')
|
||||
CUR_VER = SaltStackVersion(_version_ary[0], _version_ary[1])
|
||||
BORON = SaltStackVersion.from_name('Boron')
|
||||
|
||||
# pylint: disable=import-error
|
||||
|
|
Loading…
Add table
Reference in a new issue