misc: fix use of openssl cli (#46984)
This commit is contained in:
parent
ea599862bf
commit
5a135f7bf2
|
@ -44,7 +44,10 @@ def _call_openssl(args):
|
|||
Return a tuple made of the return code and the stdout output
|
||||
'''
|
||||
try:
|
||||
process = subprocess.Popen(args=[_openssl] + args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
process = subprocess.Popen(args=[_openssl] + args,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT,
|
||||
universal_newlines=True)
|
||||
output = process.communicate()[0]
|
||||
return process.returncode, output
|
||||
except OSError:
|
||||
|
|
Loading…
Reference in New Issue