From 3a4f56bb2b04833c53f6d9c33fb336637c6578a3 Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Thu, 14 Mar 2019 11:32:42 +0100 Subject: [PATCH] plugins/tower.py: Use urllib.parse rather than urlparse urlparse does not exist in python3, it has been replaced by urllib.parse Signed-off-by: Yanis Guenane --- awx/plugins/inventory/tower.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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():