diff options
| author | Travis McPeak <tmcpeak@us.ibm.com> | 2016-04-28 12:27:51 -0500 |
|---|---|---|
| committer | Travis McPeak <tmcpeak@us.ibm.com> | 2016-05-02 20:58:57 -0700 |
| commit | cc33c103d412d5032ba638d0894f45528f2db2b7 (patch) | |
| tree | 293e1efa981e4f49edb6bfc3ad9a075bb7fc268c | |
| parent | d9fc4c6f40d00232a4d61a1b594723376d210f78 (diff) | |
| download | kolla-ansible-cc33c103d412d5032ba638d0894f45528f2db2b7.tar.gz kolla-ansible-cc33c103d412d5032ba638d0894f45528f2db2b7.zip | |
Adding a few #nosec tags to prepare for Bandit usage
This commit adds a few #nosec tags for non-issues. I've examined
the code and determined that these don't represent security issues
so we should add a #nosec tag that tells Bandit not to find these
issues in the future.
Closes-Bug: #1577498
Change-Id: Ic37216c08442c700c64118c78cfb46e6cedd237c
| -rwxr-xr-x | kolla/cmd/build.py | 3 | ||||
| -rw-r--r-- | setup.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py index 477d85c18..5a00b1d80 100755 --- a/kolla/cmd/build.py +++ b/kolla/cmd/build.py @@ -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, @@ -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( |
