fix omnitrace-install.py script (#258)
- handle blank lines in /etc/os-release
[ROCm/rocprofiler-systems commit: e580bc9186]
이 커밋은 다음에 포함됨:
1 부모
a8c505c91d
커밋
6a8c757822
1 파일이 변경됨
+2
@@ -58,6 +58,8 @@ def get_os_info(os_distrib, os_version):
|
||||
_os_info = {}
|
||||
with open("/etc/os-release", "r") as f:
|
||||
for line in [_v.strip() for _v in f.readlines()]:
|
||||
if "=" not in line:
|
||||
continue
|
||||
_key, _data = line.split("=", 1)
|
||||
_os_info[_key] = _data.strip('"')
|
||||
|
||||
|
||||
새 이슈에서 참조
사용자 차단