Updated host info for Linux to remove deprecated use of platform.linux_distribution() in Python 3.8

这个提交包含在:
Craig Warren
2020-02-12 14:24:06 +00:00
父节点 7a579d1940
当前提交 c2ac4aa0fc

查看文件

@@ -323,8 +323,7 @@ def get_host_info():
hyperthreading = False
# OS version
osrelease = subprocess.check_output("cat /proc/sys/kernel/osrelease", shell=True).decode('utf-8').strip()
osversion = 'Linux (' + osrelease + ', ' + platform.linux_distribution()[0] + ')'
osversion = platform.platform()
# Dictionary of host information
hostinfo = {}