summaryrefslogtreecommitdiff
path: root/oslo_concurrency/processutils.py
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-08-16 15:40:59 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-08-16 15:40:59 -0400
commit9a4dea36000b1c3552822b8e5eaff39729f13016 (patch)
tree5187fe1f39747de9247ba48cb980611e1ca4b84c /oslo_concurrency/processutils.py
parenta7fff56c6d532360f054e4ba8179e8bdb188736e (diff)
downloadoslo-concurrency-9a4dea36000b1c3552822b8e5eaff39729f13016.tar.gz
ignore warning from bandit for using shell=
The functions in this library are meant to wrap subprocess, and sometimes we do want to allow passing shell=True, so mark that line with nosec to ignore B604. Change-Id: Iab676449e543a4fdabee62efa9283940d30e3398 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Diffstat (limited to 'oslo_concurrency/processutils.py')
-rw-r--r--oslo_concurrency/processutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_concurrency/processutils.py b/oslo_concurrency/processutils.py
index 53a2d70..3866d82 100644
--- a/oslo_concurrency/processutils.py
+++ b/oslo_concurrency/processutils.py
@@ -386,7 +386,7 @@ def execute(*cmd, **kwargs):
stderr=_PIPE,
close_fds=close_fds,
preexec_fn=on_preexec_fn,
- shell=shell,
+ shell=shell, # nosec:B604
cwd=cwd,
env=env_variables)