summaryrefslogtreecommitdiffstats
path: root/relationships/relationshipplugin/discovery.py
diff options
context:
space:
mode:
Diffstat (limited to 'relationships/relationshipplugin/discovery.py')
-rw-r--r--relationships/relationshipplugin/discovery.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/relationships/relationshipplugin/discovery.py b/relationships/relationshipplugin/discovery.py
index bd0e369..1b87a65 100644
--- a/relationships/relationshipplugin/discovery.py
+++ b/relationships/relationshipplugin/discovery.py
@@ -2,6 +2,7 @@
# org.onap.dcae
# ================================================================================
# Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+# Copyright (c) 2019 Pantheon.tech. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -18,7 +19,10 @@
#
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-from urlparse import urlparse
+try:
+ from urllib.parse import urlparse
+except ImportError:
+ from urlparse import urlparse
import json
import consul