mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 14:54:24 -04:00
more info
This commit is contained in:
parent
8f7885eebf
commit
7fd537e050
1 changed files with 8 additions and 3 deletions
|
|
@ -40,9 +40,14 @@ def _prepare_args_env(certbot_args, directory_url, http_01_port, tls_alpn_01_por
|
|||
|
||||
additional_args = []
|
||||
|
||||
version_output = subprocess.check_output(['certbot', '--version'],
|
||||
universal_newlines=True, stderr=subprocess.STDOUT,
|
||||
cwd=workspace)
|
||||
print(os.environ)
|
||||
try:
|
||||
version_output = subprocess.check_output(['certbot', '--version'],
|
||||
universal_newlines=True, stderr=subprocess.STDOUT,
|
||||
cwd=workspace)
|
||||
except BaseException as e:
|
||||
print(e)
|
||||
raise
|
||||
# Typical response is: output = 'certbot 0.31.0.dev0'
|
||||
version_str = version_output.split(' ')[1].strip()
|
||||
version = LooseVersion(version_str)
|
||||
|
|
|
|||
Loading…
Reference in a new issue