mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 16:30:31 +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"],
|
||||
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]
|
||||
|
||||
Reference in New Issue
Block a user