mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Only send the major version of OS X
This commit is contained in:
parent
8b9a271900
commit
7dcf8a32f4
1 changed files with 1 additions and 0 deletions
|
|
@ -222,6 +222,7 @@ def get_os_info():
|
|||
["sw_vers", "-productVersion"],
|
||||
stdout=subprocess.PIPE
|
||||
).communicate()[0]
|
||||
os_ver = os_ver.partition(".")[0]
|
||||
elif os_type.startswith('freebsd'):
|
||||
# eg "9.3-RC3-p1"
|
||||
os_ver = os_ver.partition("-")[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue