azure_rm_common: use __version__ from module_util (#46184)
(cherry picked from commit 02c11e6b51
)
This commit is contained in:
parent
a0a7fd0297
commit
992f4468d6
2 changed files with 3 additions and 4 deletions
2
changelogs/fragments/azure-version.yaml
Normal file
2
changelogs/fragments/azure-version.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- use proper module_util to get Ansible version for Azure requests
|
|
@ -13,12 +13,9 @@ import traceback
|
|||
from os.path import expanduser
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.ansible_release import __version__ as ANSIBLE_VERSION
|
||||
from ansible.module_utils.six.moves import configparser
|
||||
import ansible.module_utils.six.moves.urllib.parse as urlparse
|
||||
try:
|
||||
from ansible.release import __version__ as ANSIBLE_VERSION
|
||||
except ImportError:
|
||||
ANSIBLE_VERSION = 'unknown'
|
||||
|
||||
AZURE_COMMON_ARGS = dict(
|
||||
auth_source=dict(
|
||||
|
|
Loading…
Reference in a new issue