in cvm-attestation/src/OsInfo.py [0:0]
def get_linux_os_info(self):
os_info = {}
with open('/etc/os-release') as f:
for line in f:
key, value = line.strip().split('=', 1)
os_info[key] = value.strip('"')
return os_info