summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorkong wei <kong.wei2@zte.com.cn>2017-03-03 14:37:44 +0000
committerkong wei <kong.wei2@zte.com.cn>2017-03-03 14:52:08 +0000
commit71d4f906c1a52f5dcba114ff8aa70148dafffd24 (patch)
tree504b901f925cd4050c6ddece1c30f664634eee56 /api
parentc1783221873845d072b739c7ebd8d0a75fe00bb9 (diff)
escalator should use oslo.xxx instead of oslo-xxx
Change-Id: I2a3b9775044d389413e113a2ed73fbab02ea9dd9 Signed-off-by: Kong Wei<kong.wei2@zte.com.cn>
Diffstat (limited to 'api')
-rw-r--r--api/escalator/api/middleware/context.py6
-rw-r--r--api/escalator/api/policy.py6
-rw-r--r--api/escalator/api/v1/versions.py2
-rw-r--r--api/escalator/api/versions.py4
-rw-r--r--api/escalator/cmd/api.py6
-rw-r--r--api/escalator/common/auth.py4
-rw-r--r--api/escalator/common/client.py4
-rw-r--r--api/escalator/common/config.py6
-rw-r--r--api/escalator/common/rpc.py8
-rw-r--r--api/escalator/common/utils.py8
-rw-r--r--api/escalator/common/wsgi.py10
-rw-r--r--api/escalator/context.py2
-rw-r--r--api/escalator/i18n.py2
-rw-r--r--api/escalator/notifier.py10
-rw-r--r--api/escalator/opts.py4
15 files changed, 41 insertions, 41 deletions
diff --git a/api/escalator/api/middleware/context.py b/api/escalator/api/middleware/context.py
index b921289..a35a4de 100644
--- a/api/escalator/api/middleware/context.py
+++ b/api/escalator/api/middleware/context.py
@@ -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
diff --git a/api/escalator/api/policy.py b/api/escalator/api/policy.py
index 4d94f51..ab74e38 100644
--- a/api/escalator/api/policy.py
+++ b/api/escalator/api/policy.py
@@ -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
diff --git a/api/escalator/api/v1/versions.py b/api/escalator/api/v1/versions.py
index a026dc1..268f0a9 100644
--- a/api/escalator/api/v1/versions.py
+++ b/api/escalator/api/v1/versions.py
@@ -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
diff --git a/api/escalator/api/versions.py b/api/escalator/api/versions.py
index 751fc76..6a3dd0a 100644
--- a/api/escalator/api/versions.py
+++ b/api/escalator/api/versions.py
@@ -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
diff --git a/api/escalator/cmd/api.py b/api/escalator/cmd/api.py
index a0f63dc..c0bea85 100644
--- a/api/escalator/cmd/api.py
+++ b/api/escalator/cmd/api.py
@@ -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
diff --git a/api/escalator/common/auth.py b/api/escalator/common/auth.py
index d3e2893..cc65935 100644
--- a/api/escalator/common/auth.py
+++ b/api/escalator/common/auth.py
@@ -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
diff --git a/api/escalator/common/client.py b/api/escalator/common/client.py
index 586d638..7eb2a9c 100644
--- a/api/escalator/common/client.py
+++ b/api/escalator/common/client.py
@@ -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
diff --git a/api/escalator/common/config.py b/api/escalator/common/config.py
index 66a59f1..a381711 100644
--- a/api/escalator/common/config.py
+++ b/api/escalator/common/config.py
@@ -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
diff --git a/api/escalator/common/rpc.py b/api/escalator/common/rpc.py
index 4d50461..9825bd6 100644
--- a/api/escalator/common/rpc.py
+++ b/api/escalator/common/rpc.py
@@ -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
diff --git a/api/escalator/common/utils.py b/api/escalator/common/utils.py
index 6cb1784..df97e29 100644
--- a/api/escalator/common/utils.py
+++ b/api/escalator/common/utils.py
@@ -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
diff --git a/api/escalator/common/wsgi.py b/api/escalator/common/wsgi.py
index 8884ea4..453eb67 100644
--- a/api/escalator/common/wsgi.py
+++ b/api/escalator/common/wsgi.py
@@ -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
diff --git a/api/escalator/context.py b/api/escalator/context.py
index 0fc8e3d..b8060a3 100644
--- a/api/escalator/context.py
+++ b/api/escalator/context.py
@@ -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
diff --git a/api/escalator/i18n.py b/api/escalator/i18n.py
index 56bfde3..9a1c472 100644
--- a/api/escalator/i18n.py
+++ b/api/escalator/i18n.py
@@ -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')
diff --git a/api/escalator/notifier.py b/api/escalator/notifier.py
index 1e6ea02..60a39ea 100644
--- a/api/escalator/notifier.py
+++ b/api/escalator/notifier.py
@@ -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):
diff --git a/api/escalator/opts.py b/api/escalator/opts.py
index 21639e6..f317b90 100644
--- a/api/escalator/opts.py
+++ b/api/escalator/opts.py
@@ -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.