fix version import in common (#52005)
This commit is contained in:
parent
7d6a94e7dc
commit
b7482e6a6d
1 changed files with 4 additions and 1 deletions
|
@ -14,7 +14,10 @@ import json
|
|||
from os.path import expanduser
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule, missing_required_lib
|
||||
from ansible.module_utils.ansible_release import __version__ as ANSIBLE_VERSION
|
||||
try:
|
||||
from ansible.module_utils.ansible_release import __version__ as ANSIBLE_VERSION
|
||||
except Exception:
|
||||
ANSIBLE_VERSION = 'unknown'
|
||||
from ansible.module_utils.six.moves import configparser
|
||||
import ansible.module_utils.six.moves.urllib.parse as urlparse
|
||||
|
||||
|
|
Loading…
Reference in a new issue