summaryrefslogtreecommitdiff
path: root/nova/pci
diff options
context:
space:
mode:
authorZhihai Song <zhihai.song@easystack.cn>2015-12-25 17:50:01 +0800
committerZhihai Song <zhihai.song@easystack.cn>2015-12-25 18:01:12 +0800
commitf396c8e5fa336e4c8bf190cf8b80b7cc6466e01e (patch)
treeae6b32f48417e1391601139ca4a848c328a09808 /nova/pci
parent727656d2f59e26a8c86afdad9b3709ab8efde3c1 (diff)
downloadnova-f396c8e5fa336e4c8bf190cf8b80b7cc6466e01e.tar.gz
Remove unused logging import and LOG global var
In some modules the global LOG is not used any more. And the import of logging is not used. This patch removes the unused logging import and LOG vars. Change-Id: I28572c325f8c31ff38161010047bba00c5d5b833
Diffstat (limited to 'nova/pci')
-rw-r--r--nova/pci/request.py3
-rw-r--r--nova/pci/whitelist.py3
2 files changed, 0 insertions, 6 deletions
diff --git a/nova/pci/request.py b/nova/pci/request.py
index 46fcf202e3..7ec0687f6d 100644
--- a/nova/pci/request.py
+++ b/nova/pci/request.py
@@ -40,7 +40,6 @@ import copy
import jsonschema
from oslo_config import cfg
-from oslo_log import log as logging
from oslo_serialization import jsonutils
import six
@@ -71,8 +70,6 @@ PCI_NET_TAG = 'physical_network'
CONF = cfg.CONF
CONF.register_opts(pci_alias_opts)
-LOG = logging.getLogger(__name__)
-
_ALIAS_DEV_TYPE = ['NIC', 'ACCEL', 'GPU']
_ALIAS_CAP_TYPE = ['pci']
diff --git a/nova/pci/whitelist.py b/nova/pci/whitelist.py
index 603b29400f..fdb4ec696e 100644
--- a/nova/pci/whitelist.py
+++ b/nova/pci/whitelist.py
@@ -15,7 +15,6 @@
# under the License.
from oslo_config import cfg
-from oslo_log import log as logging
from oslo_serialization import jsonutils
from nova import exception
@@ -32,8 +31,6 @@ pci_opts = [cfg.MultiStrOpt('pci_passthrough_whitelist',
CONF = cfg.CONF
CONF.register_opts(pci_opts)
-LOG = logging.getLogger(__name__)
-
class Whitelist(object):