Drop unused import cfg

The cfg have not been used in these models, so we should drop it.
And I I have looked at the whole project. No other similar needs
to be modified.

Change-Id: Idead576f8c905b3dddb3b402aee9177431a578ca
This commit is contained in:
Li Wei 2016-08-25 17:27:56 +08:00 committed by liwei
parent f200554666
commit d2eb38dc44
6 changed files with 0 additions and 18 deletions

View File

@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from oslo_config import cfg
from oslo_log import log as logging
from oslo_serialization import jsonutils
from oslo_utils import encodeutils
@ -34,8 +33,6 @@ import glance.schema
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
class TagsController(object):
def __init__(self, db_api=None, policy_enforcer=None, notifier=None,

View File

@ -17,7 +17,6 @@ import operator
import uuid
from enum import Enum
from oslo_config import cfg
from oslo_db import exception as db_exc
import sqlalchemy
from sqlalchemy import and_
@ -36,8 +35,6 @@ from oslo_log import log as os_logging
LOG = os_logging.getLogger(__name__)
CONF = cfg.CONF
class Visibility(Enum):
PRIVATE = 'private'

View File

@ -16,7 +16,6 @@
# under the License.
import datetime
from oslo_config import cfg
from oslo_serialization import jsonutils
from oslo_utils import encodeutils
import routes
@ -29,8 +28,6 @@ from glance.common import wsgi
from glance.tests.unit import base
from glance.tests import utils as test_utils
CONF = cfg.CONF
class FakeResource(object):
"""

View File

@ -19,7 +19,6 @@ import datetime
import uuid
import mock
from oslo_config import cfg
from oslo_serialization import jsonutils
import routes
import six
@ -36,8 +35,6 @@ from glance.registry.api import v1 as rserver
from glance.tests.unit import base
from glance.tests import utils as test_utils
CONF = cfg.CONF
_gen_uuid = lambda: str(uuid.uuid4())
UUID1 = _gen_uuid()

View File

@ -18,7 +18,6 @@ import uuid
import glance_store as store
import mock
from oslo_config import cfg
from oslo_serialization import jsonutils
import six
# NOTE(jokke): simplified transition to py3, behaves like py2 xrange
@ -39,8 +38,6 @@ DATETIME = datetime.datetime(2012, 5, 16, 15, 27, 36, 325355)
ISOTIME = '2012-05-16T15:27:36Z'
CONF = cfg.CONF
BASE_URI = unit_test_utils.BASE_URI

View File

@ -18,7 +18,6 @@
import datetime
import uuid
from oslo_config import cfg
from oslo_serialization import jsonutils
import routes
import six
@ -34,8 +33,6 @@ from glance.registry.api import v2 as rserver
from glance.tests.unit import base
from glance.tests import utils as test_utils
CONF = cfg.CONF
_gen_uuid = lambda: str(uuid.uuid4())
UUID1 = _gen_uuid()