fix version import in common (#52005)

This commit is contained in:
Zim Kalinowski 2019-02-18 09:54:59 +08:00 committed by Yunge Zhu
parent 7d6a94e7dc
commit b7482e6a6d

View file

@ -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