fix moto version

Fixes saltstack/salt-jenkins#692
This commit is contained in:
Daniel Wallace 2018-01-11 17:42:00 -07:00
parent 1241ab5fc6
commit 8d907ee1a0
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

View file

@ -106,7 +106,7 @@ def _get_moto_version():
Returns the moto version
'''
try:
return LooseVersion(moto.__version__)
return LooseVersion(six.text_type(moto.__version__))
except AttributeError:
try:
return LooseVersion(pkg_resources.get_distribution('moto').version)