summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
71d4f90)
24 files changed:
# License for the specific language governing permissions and limitations
# under the License.
# 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
import webob.exc
from escalator.api import policy
"""Policy Engine For Escalator"""
"""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
from escalator.common import exception
from escalator import i18n
"""
/hosts endpoint for Escalator v1 API
"""
"""
/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
from escalator import i18n
from escalator import notifier
from escalator.common import utils
-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
import webob.dec
from escalator.common import wsgi
-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
import osprofiler.notifier
import osprofiler.web
http://service_endpoint/
"""
import httplib2
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
# NOTE(jokke): simplified transition to py3, behaves like py2 xrange
from six.moves import range
import six.moves.urllib.parse as urlparse
except ImportError:
SENDFILE_SUPPORTED = False
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
import six
# NOTE(jokke): simplified transition to py3, behaves like py2 xrange
from six.moves import range
import os
import tempfile
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
from paste import deploy
from escalator import i18n
import datetime
import traceback
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
import six
from webob import exc
import copy
from OpenSSL import crypto
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
import six
from webob import exc
from escalator.common import exception
from eventlet.green import ssl
import eventlet.greenio
import eventlet.wsgi
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
import routes
import routes.middleware
import six
# License for the specific language governing permissions and limitations
# under the License.
# 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
from escalator.api import policy
# License for the specific language governing permissions and limitations
# under the License.
# 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')
_translators = TranslatorFactory(domain='escalator')
# License for the specific language governing permissions and limitations
# under the License.
# 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
from escalator import i18n
- return oslo.messaging.get_transport(CONF)
+ return oslo_messaging.get_transport(CONF)
def __init__(self):
publisher_id = CONF.default_publisher_id
self._transport = get_transport()
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):
publisher_id=publisher_id)
def warn(self, event_type, payload):
- """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
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
config files.
This function is also discoverable via the 'escalator.api' entry point
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.
The purpose of this is to allow tools like the Oslo sample config file
generator to discover the options exposed to users by escalator.
import copy
import logging
import socket
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 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:
from simplejson import decoder
import requests
try:
except ImportError:
from urllib3 import connectionpool
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
import six
# NOTE(jokke): simplified transition to py3, behaves like py2 xrange
from six.moves import range
import sys
import threading
import uuid
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
import prettytable
import six
from escalatorclient import exc
-from oslo.utils import importutils
+from oslo_utils import importutils
if os.name == 'nt':
import msvcrt
if os.name == 'nt':
import msvcrt
-from oslo.utils import strutils
+from oslo_utils import strutils
import six
from six.moves.urllib import parse
import six
from six.moves.urllib import parse
except ImportError:
import json
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 _
import requests
from escalatorclient.openstack.common._i18n import _
#
########################################################################
#
########################################################################
-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 _
import six
from escalatorclient.openstack.common._i18n import _
import sys
import traceback
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
import six.moves.urllib.parse as urlparse
import escalatorclient
import copy
import functools
import copy
import functools
-from oslo.utils import strutils
+from oslo_utils import strutils
import escalatorclient.v1.versions
from escalatorclient.common import utils
import escalatorclient.v1.versions
from escalatorclient.common import utils
-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
import six
import six.moves.urllib.parse as urlparse