mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 16:19:13 +02:00
Only send the major version of OS X
This commit is contained in:
@@ -222,6 +222,7 @@ def get_os_info():
|
|||||||
["sw_vers", "-productVersion"],
|
["sw_vers", "-productVersion"],
|
||||||
stdout=subprocess.PIPE
|
stdout=subprocess.PIPE
|
||||||
).communicate()[0]
|
).communicate()[0]
|
||||||
|
os_ver = os_ver.partition(".")[0]
|
||||||
elif os_type.startswith('freebsd'):
|
elif os_type.startswith('freebsd'):
|
||||||
# eg "9.3-RC3-p1"
|
# eg "9.3-RC3-p1"
|
||||||
os_ver = os_ver.partition("-")[0]
|
os_ver = os_ver.partition("-")[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user