Switch from oslo.* libs to oslo_*
The oslo team is recommending everyone to switch to the non-namespaced versions of libraries. Change-Id: I7f641a56f61e307e1cf0d57b85ab72f401db6f6c
This commit is contained in:
parent
54e2a86d22
commit
d6387efb42
refstack
api
db
tests/api
@ -19,7 +19,7 @@ import json
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo_config import cfg
|
||||||
import pecan
|
import pecan
|
||||||
from pecan import hooks
|
from pecan import hooks
|
||||||
import webob
|
import webob
|
||||||
|
@ -20,8 +20,8 @@ Call these functions from refstack.db namespace, not the refstack.db.api
|
|||||||
namespace.
|
namespace.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from oslo.config import cfg
|
from oslo_config import cfg
|
||||||
from oslo.db import api as db_api
|
from oslo_db import api as db_api
|
||||||
|
|
||||||
|
|
||||||
db_opts = [
|
db_opts = [
|
||||||
|
@ -20,7 +20,7 @@ import os
|
|||||||
import alembic
|
import alembic
|
||||||
from alembic import config as alembic_config
|
from alembic import config as alembic_config
|
||||||
import alembic.migration as alembic_migration
|
import alembic.migration as alembic_migration
|
||||||
from oslo.config import cfg
|
from oslo_config import cfg
|
||||||
|
|
||||||
from refstack.db.sqlalchemy import api as db_api
|
from refstack.db.sqlalchemy import api as db_api
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@ Implementation of SQLAlchemy backend.
|
|||||||
import sys
|
import sys
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo_config import cfg
|
||||||
from oslo.db import options as db_options
|
from oslo_db import options as db_options
|
||||||
from oslo.db.sqlalchemy import session as db_session
|
from oslo_db.sqlalchemy import session as db_session
|
||||||
|
|
||||||
from refstack.db.sqlalchemy import models
|
from refstack.db.sqlalchemy import models
|
||||||
|
|
||||||
|
@ -19,9 +19,9 @@ SQLAlchemy models for Refstack data.
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo_config import cfg
|
||||||
from oslo.db.sqlalchemy import models
|
from oslo_db.sqlalchemy import models
|
||||||
from oslo.utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
from sqlalchemy import orm
|
from sqlalchemy import orm
|
||||||
from sqlalchemy.ext.declarative import declarative_base
|
from sqlalchemy.ext.declarative import declarative_base
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo_config import cfg
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -19,7 +19,7 @@ import os
|
|||||||
|
|
||||||
import alembic
|
import alembic
|
||||||
import alembic.config
|
import alembic.config
|
||||||
from oslo.config import cfg
|
from oslo_config import cfg
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
import sqlalchemy.exc
|
import sqlalchemy.exc
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
Loading…
Reference in New Issue
Block a user