Merge "Adding a few #nosec tags to prepare for Bandit usage"

This commit is contained in:
Jenkins 2016-05-03 10:20:12 +00:00 committed by Gerrit Code Review
commit bf6b2a4458
2 changed files with 3 additions and 2 deletions

View File

@ -473,7 +473,8 @@ class KollaWorker(object):
kolla_version = version.version_info.cached_version_string()
for path in self.docker_build_paths:
template_name = "Dockerfile.j2"
env = jinja2.Environment(loader=jinja2.FileSystemLoader(path))
env = jinja2.Environment( # nosec: not used to render HTML
loader=jinja2.FileSystemLoader(path))
template = env.get_template(template_name)
values = {'base_distro': self.base,
'base_distro_tag': self.base_tag,

View File

@ -21,7 +21,7 @@ import setuptools
# solution from: http://bugs.python.org/issue15881#msg170215
try:
import multiprocessing # noqa
except ImportError:
except ImportError: # nosec : empty pass is expected behavior
pass
setuptools.setup(