1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #3 from katzj/no-shell

Don't use a shell and thus avoid a whole class of problems
This commit is contained in:
Michael DeHaan 2012-02-24 15:26:33 -08:00
commit a021020967

View file

@ -11,7 +11,7 @@ import datetime
args = sys.argv[1:]
startd = datetime.datetime.now()
cmd = subprocess.Popen(args, shell=True,
cmd = subprocess.Popen(args, shell=False,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = cmd.communicate()