diff --git a/awx/plugins/inventory/tower.py b/awx/plugins/inventory/tower.py index 6f4b7abe9b..353efe7256 100755 --- a/awx/plugins/inventory/tower.py +++ b/awx/plugins/inventory/tower.py @@ -34,7 +34,11 @@ import sys import json import requests from requests.auth import HTTPBasicAuth -from urlparse import urljoin + +try: + from urlparse import urljoin +except ImportError: + from urllib.parse import urljoin def parse_configuration():