Handle FreeBSD version in updater component (#4048)

pull/4052/head
Matthew Treinish 2016-10-25 16:38:22 -04:00 committed by Johann Kellerman
parent 0dfcf40d37
commit 1b2dfb8ed1
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,8 @@ def get_newest_version(huuid):
info_object['os_version'] = platform.win32_ver()[0]
elif platform.system() == 'Darwin':
info_object['os_version'] = platform.mac_ver()[0]
elif platform.system() == 'FreeBSD':
info_object['os_version'] = platform.release()
elif platform.system() == 'Linux':
import distro
linux_dist = distro.linux_distribution(full_distribution_name=False)