Skip to content

Commit c5d683f

Browse files
committed
<fix>[host]: Support recognition for helix OS
Support identify helix OS on the web ui. Resolves: ZSTAC-56022 Change-Id: I6d796b7467787371616d776f786c71776d617a65
1 parent 1faa8c7 commit c5d683f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kvmagent/kvmagent/plugins/host_plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,8 @@ def _cache_units_convert(self, str):
999999
def fact(self, req):
10001000
rsp = HostFactResponse()
10011001
rsp.osDistribution, rsp.osVersion, rsp.osRelease = platform.dist()
1002+
if rsp.osDistribution == 'centos':
1003+
rsp.osDistribution = platform.linux_distribution()[0].lower()
10021004
rsp.osRelease = rsp.osRelease if rsp.osRelease else "Core"
10031005
# compatible with Kylin SP2 HostOS ISO and standardized ISO
10041006
rsp.osRelease = rsp.osRelease.replace('ZStack', 'Sword') if rsp.osDistribution == "kylin" else rsp.osRelease

0 commit comments

Comments
 (0)