diff options
author | Doug Hellmann <doug@doughellmann.com> | 2018-08-16 15:40:59 -0400 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2018-08-16 15:40:59 -0400 |
commit | 9a4dea36000b1c3552822b8e5eaff39729f13016 (patch) | |
tree | 5187fe1f39747de9247ba48cb980611e1ca4b84c /oslo_concurrency/processutils.py | |
parent | a7fff56c6d532360f054e4ba8179e8bdb188736e (diff) | |
download | oslo-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.py | 2 |
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) |