Fix version check, fix extracting Major and Minor versions from __version__

This commit is contained in:
David Murphy 2016-03-29 13:56:24 -06:00
parent 3c3028f347
commit 96cf024e63

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