escalator should use oslo.xxx instead of oslo-xxx 29/29729/2
authorkong wei <kong.wei2@zte.com.cn>
Fri, 3 Mar 2017 14:37:44 +0000 (14:37 +0000)
committerkong wei <kong.wei2@zte.com.cn>
Fri, 3 Mar 2017 14:52:08 +0000 (14:52 +0000)
Change-Id: I2a3b9775044d389413e113a2ed73fbab02ea9dd9
Signed-off-by: Kong Wei<kong.wei2@zte.com.cn>
24 files changed:
api/escalator/api/middleware/context.py
api/escalator/api/policy.py
api/escalator/api/v1/versions.py
api/escalator/api/versions.py
api/escalator/cmd/api.py
api/escalator/common/auth.py
api/escalator/common/client.py
api/escalator/common/config.py
api/escalator/common/rpc.py
api/escalator/common/utils.py
api/escalator/common/wsgi.py
api/escalator/context.py
api/escalator/i18n.py
api/escalator/notifier.py
api/escalator/opts.py
client/escalatorclient/common/http.py
client/escalatorclient/common/https.py
client/escalatorclient/common/utils.py
client/escalatorclient/openstack/common/apiclient/base.py
client/escalatorclient/openstack/common/apiclient/client.py
client/escalatorclient/openstack/common/apiclient/utils.py
client/escalatorclient/shell.py
client/escalatorclient/v1/shell.py
client/escalatorclient/v1/versions.py

index b921289..a35a4de 100644 (file)
@@ -13,9 +13,9 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-from oslo_serialization import jsonutils
-from oslo_config import cfg
-from oslo_log import log as logging
+from oslo.serialization import jsonutils
+from oslo.config import cfg
+from oslo.log import log as logging
 import webob.exc
 
 from escalator.api import policy
index 4d94f51..ab74e38 100644 (file)
@@ -17,9 +17,9 @@
 """Policy Engine For Escalator"""
 
 
-from oslo_config import cfg
-from oslo_log import log as logging
-from oslo_policy import policy
+from oslo.config import cfg
+from oslo.log import log as logging
+from oslo.policy import policy
 
 from escalator.common import exception
 from escalator import i18n
index a026dc1..268f0a9 100644 (file)
@@ -16,7 +16,7 @@
 """
 /hosts endpoint for Escalator v1 API
 """
-from oslo_log import log as logging
+from oslo.log import log as logging
 from escalator import i18n
 from escalator import notifier
 from escalator.common import utils
index 751fc76..6a3dd0a 100644 (file)
@@ -15,8 +15,8 @@
 
 import httplib
 
-from oslo_serialization import jsonutils
-from oslo_config import cfg
+from oslo.serialization import jsonutils
+from oslo.config import cfg
 import webob.dec
 
 from escalator.common import wsgi
index a0f63dc..c0bea85 100644 (file)
@@ -26,9 +26,9 @@ import sys
 
 import eventlet
 
-from oslo_service import systemd
-from oslo_config import cfg
-from oslo_log import log as logging
+from oslo.service import systemd
+from oslo.config import cfg
+from oslo.log import log as logging
 import osprofiler.notifier
 import osprofiler.web
 
index d3e2893..cc65935 100644 (file)
@@ -29,8 +29,8 @@ Keystone (an identity management system).
     http://service_endpoint/
 """
 import httplib2
-from oslo_serialization import jsonutils
-from oslo_log import log as logging
+from oslo.serialization import jsonutils
+from oslo.log import log as logging
 # NOTE(jokke): simplified transition to py3, behaves like py2 xrange
 from six.moves import range
 import six.moves.urllib.parse as urlparse
index 586d638..7eb2a9c 100644 (file)
@@ -40,8 +40,8 @@ try:
 except ImportError:
     SENDFILE_SUPPORTED = False
 
-from oslo_log import log as logging
-from oslo_utils import encodeutils
+from oslo.log import log as logging
+from oslo.utils import encodeutils
 import six
 # NOTE(jokke): simplified transition to py3, behaves like py2 xrange
 from six.moves import range
index 66a59f1..a381711 100644 (file)
@@ -24,9 +24,9 @@ import logging.handlers
 import os
 import tempfile
 
-from oslo_concurrency import lockutils
-from oslo_config import cfg
-from oslo_policy import policy
+from oslo.concurrency import lockutils
+from oslo.config import cfg
+from oslo.policy import policy
 from paste import deploy
 
 from escalator import i18n
index 4d50461..9825bd6 100644 (file)
@@ -19,10 +19,10 @@ RPC Controller
 import datetime
 import traceback
 
-from oslo_config import cfg
-from oslo_log import log as logging
-import oslo_utils.importutils as imp
-from oslo_utils import timeutils
+from oslo.config import cfg
+from oslo.log import log as logging
+import oslo.utils.importutils as imp
+from oslo.utils import timeutils
 import six
 from webob import exc
 
index 6cb1784..df97e29 100644 (file)
@@ -39,10 +39,10 @@ import uuid
 import copy
 
 from OpenSSL import crypto
-from oslo_config import cfg
-from oslo_log import log as logging
-from oslo_utils import encodeutils
-from oslo_utils import excutils
+from oslo.config import cfg
+from oslo.log import log as logging
+from oslo.utils import encodeutils
+from oslo.utils import excutils
 import six
 from webob import exc
 from escalator.common import exception
index 8884ea4..453eb67 100644 (file)
@@ -33,11 +33,11 @@ from eventlet.green import socket
 from eventlet.green import ssl
 import eventlet.greenio
 import eventlet.wsgi
-from oslo_serialization import jsonutils
-from oslo_concurrency import processutils
-from oslo_config import cfg
-from oslo_log import log as logging
-from oslo_log import loggers
+from oslo.serialization import jsonutils
+from oslo.concurrency import processutils
+from oslo.config import cfg
+from oslo.log import log as logging
+from oslo.log import loggers
 import routes
 import routes.middleware
 import six
index 0fc8e3d..b8060a3 100644 (file)
@@ -13,7 +13,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-from oslo_context import context
+from oslo.context import context
 
 from escalator.api import policy
 
index 56bfde3..9a1c472 100644 (file)
@@ -13,7 +13,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-from oslo_i18n import TranslatorFactory  # noqa
+from oslo.i18n import TranslatorFactory  # noqa
 
 _translators = TranslatorFactory(domain='escalator')
 
index 1e6ea02..60a39ea 100644 (file)
@@ -14,9 +14,9 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-from oslo_config import cfg
-from oslo_log import log as logging
-import oslo_messaging
+from oslo.config import cfg
+from oslo.log import log as logging
+import oslo.messaging
 
 from escalator import i18n
 
@@ -44,7 +44,7 @@ LOG = logging.getLogger(__name__)
 
 
 def get_transport():
-    return oslo_messaging.get_transport(CONF)
+    return oslo.messaging.get_transport(CONF)
 
 
 class Notifier(object):
@@ -53,7 +53,7 @@ class Notifier(object):
     def __init__(self):
         publisher_id = CONF.default_publisher_id
         self._transport = get_transport()
-        self._notifier = oslo_messaging.Notifier(self._transport,
+        self._notifier = oslo.messaging.Notifier(self._transport,
                                                  publisher_id=publisher_id)
 
     def warn(self, event_type, payload):
index 21639e6..f317b90 100644 (file)
@@ -43,7 +43,7 @@ _api_opts = [
 
 
 def list_api_opts():
-    """Return a list of oslo_config options available in Escalator API service.
+    """Return a list of oslo.config options available in Escalator API service.
 
     Each element of the list is a tuple. The first element is the name of the
     group under which the list of elements in the second element will be
@@ -51,7 +51,7 @@ def list_api_opts():
     config files.
 
     This function is also discoverable via the 'escalator.api' entry point
-    under the 'oslo_config.opts' namespace.
+    under the 'oslo.config.opts' namespace.
 
     The purpose of this is to allow tools like the Oslo sample config file
     generator to discover the options exposed to users by escalator.
index 301eedb..e3e4b88 100644 (file)
 import copy
 import logging
 import socket
-from oslo_utils import encodeutils
+from oslo.utils import encodeutils
 from escalatorclient.common import https
 from escalatorclient.common.utils import safe_header
 from escalatorclient import exc
-from oslo_utils import importutils
-from oslo_utils import netutils
+from oslo.utils import importutils
+from oslo.utils import netutils
 from simplejson import decoder
 import requests
 try:
index 55769a0..0008a84 100644 (file)
@@ -25,7 +25,7 @@ try:
 except ImportError:
     from urllib3 import connectionpool
 
-from oslo_utils import encodeutils
+from oslo.utils import encodeutils
 import six
 # NOTE(jokke): simplified transition to py3, behaves like py2 xrange
 from six.moves import range
index 0156d31..6ebffe0 100644 (file)
@@ -23,13 +23,13 @@ import re
 import sys
 import threading
 import uuid
-from oslo_utils import encodeutils
-from oslo_utils import strutils
+from oslo.utils import encodeutils
+from oslo.utils import strutils
 import prettytable
 import six
 
 from escalatorclient import exc
-from oslo_utils import importutils
+from oslo.utils import importutils
 
 if os.name == 'nt':
     import msvcrt
index eb7218b..128e964 100644 (file)
@@ -40,7 +40,7 @@ Base utilities to build API operation managers and objects on top of.
 import abc
 import copy
 
-from oslo_utils import strutils
+from oslo.utils import strutils
 import six
 from six.moves.urllib import parse
 
index d478989..6d80e3c 100644 (file)
@@ -34,8 +34,8 @@ try:
 except ImportError:
     import json
 
-from oslo_utils import encodeutils
-from oslo_utils import importutils
+from oslo.utils import encodeutils
+from oslo.utils import importutils
 import requests
 
 from escalatorclient.openstack.common._i18n import _
index c0f612a..b37e73b 100644 (file)
@@ -24,8 +24,8 @@
 #
 ########################################################################
 
-from oslo_utils import encodeutils
-from oslo_utils import uuidutils
+from oslo.utils import encodeutils
+from oslo.utils import uuidutils
 import six
 
 from escalatorclient.openstack.common._i18n import _
index 782106c..6aa17f8 100644 (file)
@@ -29,8 +29,8 @@ from os.path import expanduser
 import sys
 import traceback
 
-from oslo_utils import encodeutils
-from oslo_utils import importutils
+from oslo.utils import encodeutils
+from oslo.utils import importutils
 import six.moves.urllib.parse as urlparse
 
 import escalatorclient
index 401ad76..ab02c9a 100644 (file)
@@ -17,7 +17,7 @@ from __future__ import print_function
 
 import copy
 import functools
-from oslo_utils import strutils
+from oslo.utils import strutils
 import escalatorclient.v1.versions
 from escalatorclient.common import utils
 
index 143c4c6..6fe2f74 100644 (file)
@@ -15,8 +15,8 @@
 
 import copy
 
-from oslo_utils import encodeutils
-from oslo_utils import strutils
+from oslo.utils import encodeutils
+from oslo.utils import strutils
 import six
 import six.moves.urllib.parse as urlparse