diff options
author | Matthew Edmonds <edmondsw@us.ibm.com> | 2018-01-22 09:46:53 -0500 |
---|---|---|
committer | Matthew Edmonds <edmondsw@us.ibm.com> | 2018-03-09 14:30:10 -0500 |
commit | dc32774ecc9335860677bc2562451093d8e952a1 (patch) | |
tree | 4362e0069b1e65dadab89842bd06683d20a1f8dc /nova/console | |
parent | fcda5c2d1a8653242e580cc2c00d130a5d4f4e2e (diff) | |
download | nova-dc32774ecc9335860677bc2562451093d8e952a1.tar.gz |
remove unnecessary conf imports
There are a bunch of files that define CONF but don't ever reference
it. This cleans that up, removing unnecessary imports.
In order to get flake8 to pass I also had to remove some (unrelated)
unused imports from touched files.
Change-Id: Ib96ebeeb5e4bfedb20afb02c56da1521df9fac4f
Diffstat (limited to 'nova/console')
-rw-r--r-- | nova/console/api.py | 3 | ||||
-rw-r--r-- | nova/console/securityproxy/rfb.py | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/nova/console/api.py b/nova/console/api.py index 93821c8185..e5204d9bb4 100644 --- a/nova/console/api.py +++ b/nova/console/api.py @@ -17,13 +17,10 @@ from nova.compute import rpcapi as compute_rpcapi -import nova.conf from nova.console import rpcapi as console_rpcapi from nova.db import base from nova import objects -CONF = nova.conf.CONF - class API(base.Base): """API for spinning up or down console proxy connections.""" diff --git a/nova/console/securityproxy/rfb.py b/nova/console/securityproxy/rfb.py index c660f0f8fc..09f36fa947 100644 --- a/nova/console/securityproxy/rfb.py +++ b/nova/console/securityproxy/rfb.py @@ -15,7 +15,6 @@ import struct -from oslo_config import cfg from oslo_log import log as logging import six @@ -27,8 +26,6 @@ from nova.i18n import _ LOG = logging.getLogger(__name__) -CONF = cfg.CONF - class RFBSecurityProxy(base.SecurityProxy): """RFB Security Proxy Negotiation Helper. |