Trivial: cleanup unused conf and log variables

Basic clean up work.
In some files, oslo_config.cfg and oslo_log.log  has been imported
but not used. So remove them.

I noticed that there are a lot of unused conf variables in nova and
there is a patch to clean them up:
https://review.openstack.org/#/c/280068/
So I wondered if this was a thing in octavia as well.
Turns out it is. :- )

If have to say why not keeping them, I think it should be making
code clean and avoiding redundant compilation.

Change-Id: I59b3dcef9143db2dbaae0c9c51f4e098ddcc16e3
This commit is contained in:
Chaozhe.Chen 2016-02-22 16:45:26 +08:00
parent 521d90f823
commit 2c50fd66f5
3 changed files with 0 additions and 8 deletions

View File

@ -17,13 +17,11 @@ import six
from octavia.amphorae.drivers import driver_base as driver_base
from octavia.amphorae.drivers.keepalived.jinja import jinja_cfg
from octavia.common.config import cfg
from octavia.common import constants
from octavia.i18n import _LI
LOG = logging.getLogger(__name__)
API_VERSION = constants.API_VERSION
CONF = cfg.CONF
class KeepalivedAmphoraDriverMixin(driver_base.VRRPDriverMixin):

View File

@ -20,16 +20,12 @@ Common classes for Barbican certificate handling
import abc
from barbicanclient import client as barbican_client
from oslo_config import cfg
import six
from octavia.certificates.common import cert
from octavia.i18n import _LE
CONF = cfg.CONF
class BarbicanCert(cert.Cert):
"""Representation of a Cert based on the Barbican CertificateContainer."""
def __init__(self, cert_container):

View File

@ -16,7 +16,6 @@ import datetime
import random
from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import uuidutils
from octavia.common import constants
@ -25,7 +24,6 @@ from octavia.common import exceptions
from octavia.db import repositories as repo
from octavia.tests.functional.db import base
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
CONF.import_group('house_keeping', 'octavia.common.config')