summaryrefslogtreecommitdiff
path: root/nova/servicegroup
diff options
context:
space:
mode:
authorDavanum Srinivas <dims@linux.vnet.ibm.com>2015-01-10 22:26:32 -0500
committerDavanum Srinivas <davanum@gmail.com>2015-02-06 06:03:10 -0500
commitaf2d6c9576b1ac5f3b3768870bb15d9b5cf1610b (patch)
tree5a6d58e8d0c6cc68a732418dfbd24015460f88b1 /nova/servicegroup
parentff219370f3e1c836603b218dd3225f81ba3938b4 (diff)
downloadnova-af2d6c9576b1ac5f3b3768870bb15d9b5cf1610b.tar.gz
Switch to using oslo_* instead of oslo.*
The oslo team is recommending everyone to switch to the non-namespaced versions of libraries. Updating the hacking rule to include a check to prevent oslo.* import from creeping back in. This commit includes: - using oslo_utils instead of oslo.utils - using oslo_serialization instead of oslo.serialization - using oslo_db instead of oslo.db - using oslo_i18n instead of oslo.i18n - using oslo_middleware instead of oslo.middleware - using oslo_config instead of oslo.config - using oslo_messaging instead of "from oslo import messaging" - using oslo_vmware instead of oslo.vmware Change-Id: I3e2eb147b321ce3e928817b62abcb7d023c5f13f
Diffstat (limited to 'nova/servicegroup')
-rw-r--r--nova/servicegroup/api.py4
-rw-r--r--nova/servicegroup/drivers/db.py4
-rw-r--r--nova/servicegroup/drivers/mc.py4
-rw-r--r--nova/servicegroup/drivers/zk.py4
4 files changed, 8 insertions, 8 deletions
diff --git a/nova/servicegroup/api.py b/nova/servicegroup/api.py
index bde988faa9..07dcec13ba 100644
--- a/nova/servicegroup/api.py
+++ b/nova/servicegroup/api.py
@@ -16,8 +16,8 @@
"""Define APIs for the servicegroup access."""
-from oslo.config import cfg
-from oslo.utils import importutils
+from oslo_config import cfg
+from oslo_utils import importutils
from nova.i18n import _, _LW
from nova.openstack.common import log as logging
diff --git a/nova/servicegroup/drivers/db.py b/nova/servicegroup/drivers/db.py
index 72f9262bff..4a14259b69 100644
--- a/nova/servicegroup/drivers/db.py
+++ b/nova/servicegroup/drivers/db.py
@@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from oslo.config import cfg
-from oslo.utils import timeutils
+from oslo_config import cfg
+from oslo_utils import timeutils
import six
from nova import conductor
diff --git a/nova/servicegroup/drivers/mc.py b/nova/servicegroup/drivers/mc.py
index bc993e0af7..0534ceb973 100644
--- a/nova/servicegroup/drivers/mc.py
+++ b/nova/servicegroup/drivers/mc.py
@@ -17,8 +17,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from oslo.config import cfg
-from oslo.utils import timeutils
+from oslo_config import cfg
+from oslo_utils import timeutils
from nova import conductor
from nova import context
diff --git a/nova/servicegroup/drivers/zk.py b/nova/servicegroup/drivers/zk.py
index 7d2ca5f340..b391d173f5 100644
--- a/nova/servicegroup/drivers/zk.py
+++ b/nova/servicegroup/drivers/zk.py
@@ -17,8 +17,8 @@
import os
import eventlet
-from oslo.config import cfg
-from oslo.utils import importutils
+from oslo_config import cfg
+from oslo_utils import importutils
from nova import exception
from nova.i18n import _LE, _LW