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>
This commit is contained in:
Doug Hellmann 2018-08-16 15:40:59 -04:00
parent a7fff56c6d
commit 9a4dea3600
1 changed files with 1 additions and 1 deletions

View File

@ -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)