mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 15:52:08 -04: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:
parent
8a3aed0476
commit
aa61e6ad4e
1 changed files with 2 additions and 2 deletions
|
|
@ -401,14 +401,14 @@ def get_python_os_info(pretty=False):
|
|||
try:
|
||||
proc = subprocess.Popen(
|
||||
["/usr/bin/sw_vers", "-productVersion"],
|
||||
stdout=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
||||
universal_newlines=True,
|
||||
env=env_no_snap_for_external_calls(),
|
||||
)
|
||||
except OSError:
|
||||
proc = subprocess.Popen(
|
||||
["sw_vers", "-productVersion"],
|
||||
stdout=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
||||
universal_newlines=True,
|
||||
env=env_no_snap_for_external_calls(),
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue