Stop using oslo_utils.netutils
The urlsplit provided does not provide anymore value than the builtin one in this case. Change-Id: I4a40c35b7123b7760c354ccfd7e1a5a0c156becc
This commit is contained in:
parent
26f87a457e
commit
bbf27ad09f
|
@ -19,8 +19,8 @@ import os
|
|||
|
||||
import iso8601
|
||||
from oslo_config import cfg
|
||||
from oslo_utils import netutils
|
||||
import six
|
||||
from six.moves.urllib import parse
|
||||
from stevedore import driver
|
||||
|
||||
from gnocchi import exceptions
|
||||
|
@ -72,7 +72,7 @@ class Resource(object):
|
|||
|
||||
def get_driver(conf):
|
||||
"""Return the configured driver."""
|
||||
split = netutils.urlsplit(conf.indexer.url)
|
||||
split = parse.urlsplit(conf.indexer.url)
|
||||
d = driver.DriverManager('gnocchi.indexer',
|
||||
split.scheme).driver
|
||||
return d(conf)
|
||||
|
|
Loading…
Reference in New Issue