mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Updated as per PR comments,
- add version checking - add doco
This commit is contained in:
parent
50f1691cd8
commit
30bde1d7f3
@ -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
|
||||
-------------------
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user