Updated oslo.config to 1.11.0
This updates oslo.config to be in-line with global-requirements, and renames all the old references of 'oslo.config' to the newer oslo_config. Change-Id: I68d8f67d37bca918ce1193c2a19e00f7ed4f6caa
This commit is contained in:
parent
5481b2f162
commit
5834af13d7
@ -5,7 +5,7 @@ alembic>=0.4.1
|
||||
Babel>=1.3
|
||||
iso8601>=0.1.9
|
||||
oauthlib>=0.6
|
||||
oslo.config>=1.9.3
|
||||
oslo.config>=1.11.0
|
||||
oslo.context>=0.2.0
|
||||
oslo.utils>=1.4.0
|
||||
pecan>=0.4.5
|
||||
|
@ -5,7 +5,7 @@ alembic>=0.4.1
|
||||
Babel>=1.3
|
||||
iso8601>=0.1.9
|
||||
oauthlib>=0.6
|
||||
oslo.config>=1.9.3
|
||||
oslo.config>=1.11.0
|
||||
oslo.context>=0.2.0
|
||||
oslo.utils>=1.4.0
|
||||
pecan>=0.4.5
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
import os
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import _options
|
||||
from oslo_log import log
|
||||
import pecan
|
||||
|
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
from storyboard.api import app
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
CONF = cfg.CONF
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
# implied. See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
from storyboard.openstack.common.gettextutils import _ # noqa
|
||||
|
||||
|
@ -18,7 +18,7 @@ import pytz
|
||||
|
||||
from oauthlib.oauth2 import RequestValidator
|
||||
from oauthlib.oauth2 import WebApplicationServer
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
|
||||
from storyboard.db.api import access_tokens as token_api
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
import requests
|
||||
import six
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
app = {
|
||||
'root': 'storyboard.api.root_controller.RootController',
|
||||
|
@ -16,7 +16,7 @@
|
||||
from datetime import datetime
|
||||
import pytz
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pecan import abort
|
||||
from pecan import response
|
||||
from pecan import rest
|
||||
|
@ -16,7 +16,7 @@
|
||||
from datetime import datetime
|
||||
import pytz
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pecan import abort
|
||||
from pecan import response
|
||||
from pecan import rest
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pecan import abort
|
||||
from pecan import response
|
||||
from pecan import rest
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pecan.decorators import expose
|
||||
from pecan import response
|
||||
from pecan import rest
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
import abc
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
from storyboard.db import models
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pecan import abort
|
||||
from pecan import expose
|
||||
from pecan import request
|
||||
|
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pecan import abort
|
||||
from pecan import request
|
||||
from pecan import response
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pecan import abort
|
||||
from pecan import request
|
||||
from pecan import response
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pbr.version import VersionInfo
|
||||
from pecan import rest
|
||||
from pecan.secure import secure
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pecan import request
|
||||
from pecan import rest
|
||||
from pecan.secure import secure
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pecan import response
|
||||
from pecan import rest
|
||||
from pecan.secure import secure
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pecan import abort
|
||||
from pecan import request
|
||||
from pecan import response
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pecan import abort
|
||||
from pecan.decorators import expose
|
||||
from pecan import response
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pecan import abort
|
||||
from pecan import request
|
||||
from pecan import response
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
from pecan import abort
|
||||
from pecan import request
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
import uuid
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
from pecan import abort
|
||||
from pecan import request
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pecan import abort
|
||||
from pecan import expose
|
||||
from pecan import request
|
||||
|
@ -17,7 +17,7 @@ import os
|
||||
|
||||
import six
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
import copy
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_db import exception as db_exc
|
||||
from oslo_db.sqlalchemy import session as db_session
|
||||
from oslo_db.sqlalchemy.utils import InvalidSortKey
|
||||
|
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import json
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from pecan import request
|
||||
from pecan import response
|
||||
from wsme.rest.json import tojson
|
||||
|
@ -21,7 +21,7 @@ import os
|
||||
from alembic import command as alembic_command
|
||||
from alembic import config as alembic_config
|
||||
from alembic import util as alembic_util
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_db import options
|
||||
import six
|
||||
|
||||
|
@ -22,7 +22,7 @@ import pytz
|
||||
import six
|
||||
import six.moves.urllib.parse as urlparse
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_db.sqlalchemy import models
|
||||
from sqlalchemy import Boolean
|
||||
from sqlalchemy import Column
|
||||
|
@ -16,7 +16,7 @@
|
||||
import warnings
|
||||
import yaml
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
import six
|
||||
from sqlalchemy.exc import SADeprecationWarning
|
||||
|
@ -12,7 +12,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
|
||||
from storyboard.db.api import base as db_api
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
CONF = cfg.CONF
|
||||
|
||||
|
@ -17,7 +17,7 @@ from threading import Timer
|
||||
|
||||
import pika
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
|
||||
from storyboard.openstack.common.gettextutils import _, _LI # noqa
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
import json
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
from pika.exceptions import ConnectionClosed
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
import json
|
||||
import time
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
from pika.exceptions import ConnectionClosed
|
||||
from stevedore import enabled
|
||||
|
@ -16,7 +16,7 @@
|
||||
# under the License.
|
||||
|
||||
import fixtures
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
import six
|
||||
|
||||
|
||||
|
@ -26,7 +26,7 @@ import threading
|
||||
import time
|
||||
import weakref
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
|
||||
from storyboard.openstack.common import fileutils
|
||||
|
@ -15,7 +15,7 @@
|
||||
import abc
|
||||
import six
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from stevedore.enabled import EnabledExtensionManager
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
# implied. See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
|
||||
from storyboard.common.working_dir import get_plugin_directory
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
import smtplib
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
|
||||
from storyboard.plugin.base import PluginBase
|
||||
|
@ -18,7 +18,7 @@ import six
|
||||
import time
|
||||
import uuid
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
|
||||
from storyboard.plugin.email import get_email_directory
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
import smtplib
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
|
||||
CONF = cfg.CONF
|
||||
|
@ -17,7 +17,7 @@ from multiprocessing import Process
|
||||
import signal
|
||||
from threading import Timer
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
|
||||
import storyboard.db.api.base as db_api
|
||||
|
@ -15,7 +15,7 @@
|
||||
import atexit
|
||||
import six
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
from pytz import utc
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
# implied. See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
CONF = cfg.CONF
|
||||
|
||||
|
@ -19,7 +19,7 @@ import requests
|
||||
import uuid
|
||||
|
||||
from mock import patch
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
import six
|
||||
import six.moves.urllib.parse as urlparse
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
import six
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
from storyboard.tests import base
|
||||
|
||||
|
@ -22,7 +22,7 @@ import uuid
|
||||
|
||||
from alembic import command
|
||||
import fixtures
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
import pecan
|
||||
import pecan.testing
|
||||
|
@ -12,7 +12,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from six.moves import http_client
|
||||
|
||||
import storyboard.common.exception as exc
|
||||
|
@ -12,7 +12,7 @@
|
||||
# implied. See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
import storyboard.common.hook_priorities as priority
|
||||
import storyboard.tests.base as base
|
||||
|
@ -16,7 +16,7 @@ import os
|
||||
import shutil
|
||||
import stat
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
import storyboard.common.working_dir as working_dir
|
||||
import storyboard.tests.base as base
|
||||
|
@ -37,7 +37,7 @@ postgres=# create database openstack_citest with owner openstack_citest;
|
||||
|
||||
"""
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_db.sqlalchemy import utils as db_utils
|
||||
|
||||
from storyboard.tests.db.migration import test_migrations_base as base
|
||||
|
@ -28,7 +28,7 @@ import os
|
||||
from alembic import command
|
||||
from alembic import config as alembic_config
|
||||
from alembic import migration
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
import six
|
||||
from six.moves import configparser
|
||||
@ -308,7 +308,7 @@ class BaseWalkMigrationTestCase(BaseMigrationTestCase):
|
||||
"""For each type of repository we should do some of configure steps.
|
||||
For migrate_repo we should set under version control our database.
|
||||
For alembic we should configure database settings. For this goal we
|
||||
should use oslo.config and openstack.commom.db.sqlalchemy.session with
|
||||
should use oslo_config and openstack.commom.db.sqlalchemy.session with
|
||||
database functionality (reset default settings and session cleanup).
|
||||
"""
|
||||
CONF.set_override('connection', six.text_type(engine.url),
|
||||
|
@ -17,7 +17,7 @@ import shutil
|
||||
import smtplib
|
||||
import stat
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
import mock_smtp as mock
|
||||
from storyboard.plugin.email.base import EmailPluginBase
|
||||
|
@ -15,7 +15,7 @@
|
||||
import os
|
||||
import stat
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
from storyboard.plugin.email import get_email_directory
|
||||
from storyboard.tests import base
|
||||
|
@ -20,7 +20,7 @@ import re
|
||||
import six
|
||||
import uuid
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
from storyboard.plugin.email.factory import EmailFactory
|
||||
from storyboard.plugin.email.outbox import get_outbox
|
||||
|
@ -12,7 +12,7 @@
|
||||
# implied. See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
import mock_smtp as mock
|
||||
from storyboard.plugin.email.smtp_client import get_smtp_client
|
||||
|
@ -17,7 +17,7 @@ from mock import patch
|
||||
from random import random
|
||||
import smtplib
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
from storyboard.plugin.email.factory import EmailFactory
|
||||
from storyboard.plugin.email.outbox import Outbox
|
||||
|
@ -15,7 +15,7 @@
|
||||
import datetime
|
||||
|
||||
from apscheduler.triggers.date import DateTrigger
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
|
||||
import storyboard.plugin.scheduler.base as plugin_base
|
||||
|
||||
|
@ -17,7 +17,7 @@ import datetime
|
||||
from apscheduler.triggers.date import DateTrigger
|
||||
|
||||
from apscheduler.triggers.interval import IntervalTrigger
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
from stevedore.extension import Extension
|
||||
|
||||
from plugin.scheduler.mock_plugin import MockPlugin
|
||||
|
@ -16,7 +16,7 @@ from datetime import datetime
|
||||
from datetime import timedelta
|
||||
import pytz
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo_config import cfg
|
||||
import storyboard.db.api.base as db_api
|
||||
from storyboard.db.models import AccessToken
|
||||
from storyboard.db.models import RefreshToken
|
||||
|
Loading…
Reference in New Issue
Block a user