We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1faa8c7 commit c5d683fCopy full SHA for c5d683f
kvmagent/kvmagent/plugins/host_plugin.py
@@ -999,6 +999,8 @@ def _cache_units_convert(self, str):
999
def fact(self, req):
1000
rsp = HostFactResponse()
1001
rsp.osDistribution, rsp.osVersion, rsp.osRelease = platform.dist()
1002
+ if rsp.osDistribution == 'centos':
1003
+ rsp.osDistribution = platform.linux_distribution()[0].lower()
1004
rsp.osRelease = rsp.osRelease if rsp.osRelease else "Core"
1005
# compatible with Kylin SP2 HostOS ISO and standardized ISO
1006
rsp.osRelease = rsp.osRelease.replace('ZStack', 'Sword') if rsp.osDistribution == "kylin" else rsp.osRelease
0 commit comments