mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 17:54:25 +02:00
certbot.util: suppress Popen CLI output (#8341)
* certbot.util: suppress Popen CLI output Fixes #8326 * can't use subprocess.DEVNULL in py2
This commit is contained in:
@@ -401,14 +401,14 @@ def get_python_os_info(pretty=False):
|
|||||||
try:
|
try:
|
||||||
proc = subprocess.Popen(
|
proc = subprocess.Popen(
|
||||||
["/usr/bin/sw_vers", "-productVersion"],
|
["/usr/bin/sw_vers", "-productVersion"],
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
||||||
universal_newlines=True,
|
universal_newlines=True,
|
||||||
env=env_no_snap_for_external_calls(),
|
env=env_no_snap_for_external_calls(),
|
||||||
)
|
)
|
||||||
except OSError:
|
except OSError:
|
||||||
proc = subprocess.Popen(
|
proc = subprocess.Popen(
|
||||||
["sw_vers", "-productVersion"],
|
["sw_vers", "-productVersion"],
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
||||||
universal_newlines=True,
|
universal_newlines=True,
|
||||||
env=env_no_snap_for_external_calls(),
|
env=env_no_snap_for_external_calls(),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user