Fix import of urlparse on python3
Should fix the error reported here:
https://github.com/ansible/ansible/issues/17495#issuecomment-267921719
(cherry picked from commit 4f960a4f42
)
This commit is contained in:
parent
04b2e1fbc0
commit
5f5d143194
1 changed files with 3 additions and 3 deletions
|
@ -21,10 +21,10 @@ import re
|
||||||
import json
|
import json
|
||||||
import sys
|
import sys
|
||||||
import copy
|
import copy
|
||||||
|
|
||||||
from distutils.version import LooseVersion
|
from distutils.version import LooseVersion
|
||||||
from urlparse import urlparse
|
|
||||||
from ansible.module_utils.basic import *
|
from ansible.module_utils.basic import AnsibleModule, BOOLEANS_TRUE, BOOLEANS_FALSE
|
||||||
|
from ansible.module_utils.six.moves.urllib.parse import urlparse
|
||||||
|
|
||||||
HAS_DOCKER_PY = True
|
HAS_DOCKER_PY = True
|
||||||
HAS_DOCKER_ERROR = None
|
HAS_DOCKER_ERROR = None
|
||||||
|
|
Loading…
Reference in a new issue