From ae7e9fc4fab18de14aad1c81928af407c2731a31 Mon Sep 17 00:00:00 2001 From: Cao Xuan Hoang Date: Thu, 25 Aug 2016 08:55:33 +0700 Subject: [PATCH] TrivialFix: Remove cfg import unused This patch removes cfg import unused in glance/api/v2/metadef_objects.py and glance/api/v3/router.py Change-Id: I97c75ab9e844423e911a3b83c9e27878c6578c6b --- glance/api/v2/metadef_objects.py | 3 --- glance/api/v3/router.py | 2 -- 2 files changed, 5 deletions(-) diff --git a/glance/api/v2/metadef_objects.py b/glance/api/v2/metadef_objects.py index 5d9112e4..6c0fb8bc 100644 --- a/glance/api/v2/metadef_objects.py +++ b/glance/api/v2/metadef_objects.py @@ -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 @@ -35,8 +34,6 @@ import glance.schema LOG = logging.getLogger(__name__) -CONF = cfg.CONF - class MetadefObjectsController(object): def __init__(self, db_api=None, policy_enforcer=None, notifier=None): diff --git a/glance/api/v3/router.py b/glance/api/v3/router.py index 0af76591..1a32901d 100644 --- a/glance/api/v3/router.py +++ b/glance/api/v3/router.py @@ -12,14 +12,12 @@ # 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_log import versionutils from glance.common import wsgi from glance.i18n import _LW -CONF = cfg.CONF LOG = logging.getLogger(__name__)