Updated as per PR comments,

- add version checking
- add doco
This commit is contained in:
Steven Joseph 2017-08-23 00:21:03 +10:00
parent 50f1691cd8
commit 30bde1d7f3
2 changed files with 8 additions and 1 deletions

View File

@ -113,6 +113,11 @@ Profitbricks Cloud Updated Dependency
The minimum version of the `profitbrick` python package for the `profitbricks`
cloud driver has changed from 3.0.0 to 3.1.0.
Azure Cloud Updated Dependency
------------------------------
The azure sdk used for the ``azurearm`` cloud driver now depends on ``azure-cli>=2.0.12``
Module Deprecations
-------------------

View File

@ -73,6 +73,7 @@ from salt.exceptions import (
SaltCloudExecutionTimeout,
)
from salt.ext.six.moves import filter
from distutils.version import LooseVersion
# Import 3rd-party libs
HAS_LIBS = False
@ -115,7 +116,8 @@ try:
from azure.mgmt.web import WebSiteManagementClient
from msrestazure.azure_exceptions import CloudError
from azure.multiapi.storage.v2016_05_31 import CloudStorageAccount
HAS_LIBS = True
from azure.cli import core
HAS_LIBS = LooseVersion(core.__version__) >= LooseVersion("2.0.12")
except ImportError:
pass
# pylint: enable=wrong-import-position,wrong-import-order