Merge "pre-commit: Integrate bandit"
This commit is contained in:
@@ -142,7 +142,7 @@ class DataSourceManager(object):
|
||||
ds.METRIC_MAP.update(self.metric_map[ds.NAME])
|
||||
return ds
|
||||
except Exception:
|
||||
pass
|
||||
pass # nosec: B110
|
||||
raise exception.MetricNotAvailable(metric=metric)
|
||||
|
||||
def load_metric_map(self, file_path):
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import abc
|
||||
import collections
|
||||
|
||||
from lxml import etree
|
||||
from lxml import etree # nosec: B410
|
||||
from oslo_log import log
|
||||
|
||||
from watcher.objects import base
|
||||
|
||||
@@ -17,7 +17,7 @@ Openstack implementation of the cluster graph.
|
||||
"""
|
||||
|
||||
import ast
|
||||
from lxml import etree
|
||||
from lxml import etree # nosec: B410
|
||||
import networkx as nx
|
||||
from oslo_concurrency import lockutils
|
||||
from oslo_log import log
|
||||
|
||||
Reference in New Issue
Block a user