mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Don't use a shell and thus avoid a whole class of problems
This commit is contained in:
parent
bd37864242
commit
24e10dc2e8
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ import datetime
|
||||||
args = sys.argv[1:]
|
args = sys.argv[1:]
|
||||||
startd = datetime.datetime.now()
|
startd = datetime.datetime.now()
|
||||||
|
|
||||||
cmd = subprocess.Popen(args, shell=True,
|
cmd = subprocess.Popen(args, shell=False,
|
||||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
|
||||||
out, err = cmd.communicate()
|
out, err = cmd.communicate()
|
||||||
|
|
Loading…
Reference in a new issue