Merge pull request #32221 from dmurphy18/fix_version_check

Fix version check, fix extracting Major and Minor versions from __ver…
This commit is contained in:
Mike Place 2016-03-30 08:50:31 -06:00
commit 1d9321d043

View file

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