s/oslo.config/oslo_config/

Change-Id: I0ea5ff7209aba2b9874283e5728cd74250ca571a
This commit is contained in:
Isaku Yamahata 2015-04-06 17:48:17 -07:00
parent ac4f4b16be
commit 04ae125290
44 changed files with 50 additions and 50 deletions

View File

@ -17,7 +17,7 @@
import os import os
from oslo.config import cfg from oslo_config import cfg
from tacker.common import config from tacker.common import config
from tacker.openstack.common import log as logging from tacker.openstack.common import log as logging

View File

@ -18,7 +18,7 @@
import os import os
from oslo.config import cfg from oslo_config import cfg
from tacker.agent.linux import ip_lib from tacker.agent.linux import ip_lib
from tacker.agent.linux import utils from tacker.agent.linux import utils

View File

@ -18,7 +18,7 @@
import abc import abc
import netaddr import netaddr
from oslo.config import cfg from oslo_config import cfg
import six import six
from tacker.agent.common import config from tacker.agent.common import config

View File

@ -15,7 +15,7 @@
# under the License. # under the License.
import netaddr import netaddr
from oslo.config import cfg from oslo_config import cfg
from tacker.agent.linux import utils from tacker.agent.linux import utils
from tacker.common import exceptions from tacker.common import exceptions

View File

@ -15,7 +15,7 @@
import urllib import urllib
from oslo.config import cfg from oslo_config import cfg
from webob import exc from webob import exc
from tacker.common import constants from tacker.common import constants

View File

@ -18,7 +18,7 @@ import abc
import imp import imp
import os import os
from oslo.config import cfg from oslo_config import cfg
import routes import routes
import six import six
import webob.dec import webob.dec

View File

@ -14,7 +14,7 @@
# under the License. # under the License.
# @author: Paul Michali Cisco Systems, Inc. # @author: Paul Michali Cisco Systems, Inc.
from oslo.config import cfg from oslo_config import cfg
from tacker.api import extensions from tacker.api import extensions
from tacker.api.v1 import base from tacker.api.v1 import base

View File

@ -14,7 +14,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo.config import cfg from oslo_config import cfg
import webob.dec import webob.dec
import webob.exc import webob.exc

View File

@ -23,7 +23,7 @@ import sys
import eventlet import eventlet
eventlet.monkey_patch() eventlet.monkey_patch()
from oslo.config import cfg from oslo_config import cfg
from tacker.common import config from tacker.common import config
from tacker.openstack.common import service as common_service from tacker.openstack.common import service as common_service

View File

@ -19,8 +19,8 @@ Routines for configuring Tacker
import os import os
from oslo.config import cfg
from oslo import messaging from oslo import messaging
from oslo_config import cfg
from paste import deploy from paste import deploy
from tacker.common import utils from tacker.common import utils

View File

@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo.config import cfg
from oslo import messaging from oslo import messaging
from oslo.messaging import serializer as om_serializer from oslo.messaging import serializer as om_serializer
from oslo_config import cfg
from tacker.common import exceptions from tacker.common import exceptions
from tacker import context from tacker import context

View File

@ -13,8 +13,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo.config import cfg
from oslo import messaging from oslo import messaging
from oslo_config import cfg
from tacker.common import rpc as n_rpc from tacker.common import rpc as n_rpc
from tacker.openstack.common import log as logging from tacker.openstack.common import log as logging

View File

@ -30,7 +30,7 @@ import socket
import uuid import uuid
from eventlet.green import subprocess from eventlet.green import subprocess
from oslo.config import cfg from oslo_config import cfg
from tacker.common import constants as q_const from tacker.common import constants as q_const
from tacker.openstack.common import lockutils from tacker.openstack.common import lockutils

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo.config import cfg from oslo_config import cfg
import sqlalchemy as sql import sqlalchemy as sql
from tacker.db import model_base from tacker.db import model_base

View File

@ -20,7 +20,7 @@ from alembic import command as alembic_command
from alembic import config as alembic_config from alembic import config as alembic_config
from alembic import script as alembic_script from alembic import script as alembic_script
from alembic import util as alembic_util from alembic import util as alembic_util
from oslo.config import cfg from oslo_config import cfg
HEAD_FILENAME = 'HEAD' HEAD_FILENAME = 'HEAD'

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo.config import cfg from oslo_config import cfg
from tacker.common import rpc_compat from tacker.common import rpc_compat
from tacker.common import utils from tacker.common import utils

View File

@ -25,13 +25,13 @@ from stevedore import driver
def _get_olso_configs(): def _get_olso_configs():
"""Returns the oslo.config options to register.""" """Returns the oslo_config options to register."""
# NOTE(flaper87): Oslo config should be # NOTE(flaper87): oslo_config should be
# optional. Instead of doing try / except # optional. Instead of doing try / except
# at the top of this file, lets import cfg # at the top of this file, lets import cfg
# here and assume that the caller of this # here and assume that the caller of this
# function already took care of this dependency. # function already took care of this dependency.
from oslo.config import cfg from oslo_config import cfg
return [ return [
cfg.StrOpt('cache_url', default='memory://', cfg.StrOpt('cache_url', default='memory://',

View File

@ -12,7 +12,7 @@
import copy import copy
from oslo.config import cfg from oslo_config import cfg
database_opts = [ database_opts = [
@ -153,9 +153,9 @@ def set_defaults(sql_connection, sqlite_db, max_pool_size=None,
def list_opts(): def list_opts():
"""Returns a list of oslo.config options available in the library. """Returns a list of oslo_config options available in the library.
The returned list includes all oslo.config options which may be registered The returned list includes all oslo_config options which may be registered
at runtime by the library. at runtime by the library.
Each element of the list is a tuple. The first element is the name of the Each element of the list is a tuple. The first element is the name of the

View File

@ -878,13 +878,13 @@ class EngineFacade(object):
@classmethod @classmethod
def from_config(cls, connection_string, conf, def from_config(cls, connection_string, conf,
sqlite_fk=False, autocommit=True, expire_on_commit=False): sqlite_fk=False, autocommit=True, expire_on_commit=False):
"""Initialize EngineFacade using oslo.config config instance options. """Initialize EngineFacade using oslo_config config instance options.
:param connection_string: SQLAlchemy connection string :param connection_string: SQLAlchemy connection string
:type connection_string: string :type connection_string: string
:param conf: oslo.config config instance :param conf: oslo_config config instance
:type conf: oslo.config.cfg.ConfigOpts :type conf: oslo_config.cfg.ConfigOpts
:param sqlite_fk: enable foreign keys in SQLite :param sqlite_fk: enable foreign keys in SQLite
:type sqlite_fk: bool :type sqlite_fk: bool

View File

@ -27,7 +27,7 @@ import traceback
import eventlet import eventlet
import eventlet.backdoor import eventlet.backdoor
import greenlet import greenlet
from oslo.config import cfg from oslo_config import cfg
from tacker.openstack.common.gettextutils import _ from tacker.openstack.common.gettextutils import _
from tacker.openstack.common import log as logging from tacker.openstack.common import log as logging

View File

@ -15,7 +15,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import fixtures import fixtures
from oslo.config import cfg from oslo_config import cfg
import six import six

View File

@ -26,7 +26,7 @@ import threading
import time import time
import weakref import weakref
from oslo.config import cfg from oslo_config import cfg
from tacker.openstack.common import fileutils from tacker.openstack.common import fileutils
from tacker.openstack.common.gettextutils import _ from tacker.openstack.common.gettextutils import _

View File

@ -37,7 +37,7 @@ import re
import sys import sys
import traceback import traceback
from oslo.config import cfg from oslo_config import cfg
import six import six
from six import moves from six import moves

View File

@ -14,7 +14,7 @@
import logging import logging
from oslo.config import cfg from oslo_config import cfg
from tacker.openstack.common import notifier from tacker.openstack.common import notifier

View File

@ -17,7 +17,7 @@ Request Body limiting middleware.
""" """
from oslo.config import cfg from oslo_config import cfg
import webob.dec import webob.dec
import webob.exc import webob.exc

View File

@ -13,7 +13,7 @@
import time import time
from oslo.config import cfg from oslo_config import cfg
import six import six
from tacker.openstack.common.gettextutils import _, _LE, _LI from tacker.openstack.common.gettextutils import _, _LE, _LI

View File

@ -35,7 +35,7 @@ except ImportError:
import eventlet import eventlet
from eventlet import event from eventlet import event
from oslo.config import cfg from oslo_config import cfg
from tacker.openstack.common import eventlet_backdoor from tacker.openstack.common import eventlet_backdoor
from tacker.openstack.common.gettextutils import _LE, _LI, _LW from tacker.openstack.common.gettextutils import _LE, _LI, _LW

View File

@ -15,7 +15,7 @@
import os import os
import ssl import ssl
from oslo.config import cfg from oslo_config import cfg
from tacker.openstack.common.gettextutils import _ from tacker.openstack.common.gettextutils import _

View File

@ -21,7 +21,7 @@ Policy engine for tacker. Largely copied from nova.
import itertools import itertools
import re import re
from oslo.config import cfg from oslo_config import cfg
from tacker.api.v1 import attributes from tacker.api.v1 import attributes
from tacker.common import exceptions from tacker.common import exceptions

View File

@ -18,7 +18,7 @@ import logging as std_logging
import os import os
import random import random
from oslo.config import cfg from oslo_config import cfg
from tacker.common import config from tacker.common import config
from tacker.common import rpc_compat from tacker.common import rpc_compat

View File

@ -28,8 +28,8 @@ import weakref
import eventlet.timeout import eventlet.timeout
import fixtures import fixtures
import mock import mock
from oslo.config import cfg
from oslo.messaging import conffixture as messaging_conffixture from oslo.messaging import conffixture as messaging_conffixture
from oslo_config import cfg
import testtools import testtools
from tacker.common import config from tacker.common import config

View File

@ -17,7 +17,7 @@
import os import os
from oslo.config import cfg from oslo_config import cfg
reldir = os.path.join(os.path.dirname(__file__), '..', '..', '..') reldir = os.path.join(os.path.dirname(__file__), '..', '..', '..')

View File

@ -21,10 +21,10 @@
import uuid import uuid
import mock import mock
from oslo.config import cfg
import oslo.messaging.rpc.client import oslo.messaging.rpc.client
from oslo.messaging import target from oslo.messaging import target
from oslo.messaging import transport from oslo.messaging import transport
from oslo_config import cfg
import tacker.agent.linux.ip_lib import tacker.agent.linux.ip_lib
from tacker import context from tacker import context

View File

@ -19,7 +19,7 @@
# @author: Isaku Yamahata, Intel Corporation. # @author: Isaku Yamahata, Intel Corporation.
import mock import mock
from oslo.config import cfg from oslo_config import cfg
from tacker import context from tacker import context
from tacker.tests import base from tacker.tests import base

View File

@ -21,7 +21,7 @@
import uuid import uuid
import mock import mock
from oslo.config import cfg from oslo_config import cfg
from tacker.common import topics from tacker.common import topics
from tacker import context from tacker import context

View File

@ -21,7 +21,7 @@
import uuid import uuid
import mock import mock
from oslo.config import cfg from oslo_config import cfg
from tacker.db import api as db from tacker.db import api as db
import tacker.openstack.common.rpc.proxy import tacker.openstack.common.rpc.proxy

View File

@ -21,7 +21,7 @@
import uuid import uuid
import mock import mock
from oslo.config import cfg from oslo_config import cfg
from tacker.api.v1 import attributes from tacker.api.v1 import attributes
import tacker.openstack.common.rpc.proxy import tacker.openstack.common.rpc.proxy

View File

@ -18,7 +18,7 @@
import os import os
import mock import mock
from oslo.config import cfg from oslo_config import cfg
import six.moves.urllib.parse as urlparse import six.moves.urllib.parse as urlparse
import webob import webob
from webob import exc from webob import exc

View File

@ -21,7 +21,7 @@
import uuid import uuid
import mock import mock
from oslo.config import cfg from oslo_config import cfg
from webob import exc from webob import exc
import webtest import webtest

View File

@ -16,7 +16,7 @@
import os import os
import mock import mock
from oslo.config import cfg from oslo_config import cfg
from tacker.common import config # noqa from tacker.common import config # noqa
from tacker.tests import base from tacker.tests import base

View File

@ -20,7 +20,7 @@ import socket
import urllib2 import urllib2
import mock import mock
from oslo.config import cfg from oslo_config import cfg
import testtools import testtools
import webob import webob
import webob.exc import webob.exc

View File

@ -22,7 +22,7 @@
import time import time
from oslo.config import cfg from oslo_config import cfg
from tacker.api.v1 import attributes from tacker.api.v1 import attributes
from tacker.openstack.common import log as logging from tacker.openstack.common import log as logging
from tacker.vm.drivers import abstract_driver from tacker.vm.drivers import abstract_driver

View File

@ -23,7 +23,7 @@
import inspect import inspect
import eventlet import eventlet
from oslo.config import cfg from oslo_config import cfg
from tacker.api.v1 import attributes from tacker.api.v1 import attributes
from tacker.common import driver_manager from tacker.common import driver_manager

View File

@ -31,7 +31,7 @@ from xml.parsers import expat
import eventlet.wsgi import eventlet.wsgi
#eventlet.patcher.monkey_patch(all=False, socket=True, thread=True) #eventlet.patcher.monkey_patch(all=False, socket=True, thread=True)
from oslo.config import cfg from oslo_config import cfg
import routes.middleware import routes.middleware
import webob.dec import webob.dec
import webob.exc import webob.exc