Browse Source

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>
Doug Hellmann 8 months ago
parent
commit
9a4dea3600
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      oslo_concurrency/processutils.py

+ 1
- 1
oslo_concurrency/processutils.py View File

@@ -386,7 +386,7 @@ def execute(*cmd, **kwargs):
386 386
                                    stderr=_PIPE,
387 387
                                    close_fds=close_fds,
388 388
                                    preexec_fn=on_preexec_fn,
389
-                                   shell=shell,
389
+                                   shell=shell,  # nosec:B604
390 390
                                    cwd=cwd,
391 391
                                    env=env_variables)
392 392
 

Loading…
Cancel
Save