!575 A13检查项支持kylin操作系统

Merge pull request !575 from zhangao/master_A13
This commit is contained in:
opengauss_bot 2023-09-19 09:42:51 +00:00 committed by Gitee
commit bdcec76457
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1394,7 +1394,7 @@ def collectfirewall():
"""
data = firewall()
distname = LinuxDistro.linux_distribution()[0]
if distname in ("redhat", "centos", "euleros", "openEuler", "FusionOS"):
if distname in ("redhat", "centos", "euleros", "openEuler", "FusionOS", "kylin"):
data.distname = distname.upper()
if g_Platform.isPlatFormEulerOSOrRHEL7X():
cmd = "systemctl status firewalld.service"
@ -1409,7 +1409,7 @@ def collectfirewall():
data.errormsg = output
return data
if distname in ("redhat", "centos", "euleros", "openEuler", "FusionOS"):
if distname in ("redhat", "centos", "euleros", "openEuler", "FusionOS", "kylin"):
if g_Platform.isPlatFormEulerOSOrRHEL7X():
if (output.strip()).find("Active: "
"active (running)") > 0: