diff options
author | Davanum Srinivas <dims@linux.vnet.ibm.com> | 2014-07-30 14:40:43 -0700 |
---|---|---|
committer | Davanum Srinivas <dims@linux.vnet.ibm.com> | 2014-10-06 21:41:17 -0400 |
commit | 323fa6fef7e92a2bded1f7da37b8dfc98f8af1e0 (patch) | |
tree | d086b8e62af819555bb50eb69e390f7b0849cef3 /nova/volume/__init__.py | |
parent | 97f60c138c6a0cc8c28ae71099b5cc31a9332ca8 (diff) | |
download | nova-323fa6fef7e92a2bded1f7da37b8dfc98f8af1e0.tar.gz |
Use oslo.utils
oslo.utils library now provides the functionality previously in
oslo-incubator's excutils, importutils, network_utils, strutils
timeutils, units etc. Some modules already moved to oslo.utils
will still be around since other code in nova/openstack/common/
are using it and will be removed in a subsequent commit.
Change-Id: Idc716342535fdfa680963e0e073ddb46f5f1eb34
Diffstat (limited to 'nova/volume/__init__.py')
-rw-r--r-- | nova/volume/__init__.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/nova/volume/__init__.py b/nova/volume/__init__.py index a8a9510acd..0ab9eba300 100644 --- a/nova/volume/__init__.py +++ b/nova/volume/__init__.py @@ -15,10 +15,7 @@ # under the License. import oslo.config.cfg - -# Importing full names to not pollute the namespace and cause possible -# collisions with use of 'from nova.volume import <foo>' elsewhere. -import nova.openstack.common.importutils +from oslo.utils import importutils _volume_opts = [ oslo.config.cfg.StrOpt('volume_api_class', @@ -31,7 +28,6 @@ oslo.config.cfg.CONF.register_opts(_volume_opts) def API(): - importutils = nova.openstack.common.importutils volume_api_class = oslo.config.cfg.CONF.volume_api_class cls = importutils.import_class(volume_api_class) return cls() |