Use py3kcompat.urlutils from oslo instead of six.urllib_parse
Six before 1.4.0 does not provide urllib_parse module, so we need another solution. Closes-bug: #1240827 Change-Id: I6b49b80b94028e01da0e3c4930f3e97cd32f73d0
This commit is contained in:
@@ -17,10 +17,10 @@
|
||||
# under the License.
|
||||
|
||||
import logging
|
||||
from six.moves import urllib_parse as urlparse # noqa
|
||||
from stevedore import driver
|
||||
|
||||
from taskflow import exceptions as exc
|
||||
from taskflow.openstack.common.py3kcompat import urlutils
|
||||
|
||||
|
||||
# NOTE(harlowja): this is the entrypoint namespace, not the module namespace.
|
||||
@@ -30,7 +30,7 @@ LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def fetch(conf, namespace=BACKEND_NAMESPACE):
|
||||
backend_name = urlparse.urlparse(conf['connection']).scheme
|
||||
backend_name = urlutils.urlparse(conf['connection']).scheme
|
||||
LOG.debug('Looking for %r backend driver in %r', backend_name, namespace)
|
||||
try:
|
||||
mgr = driver.DriverManager(namespace, backend_name,
|
||||
|
||||
Reference in New Issue
Block a user