diff --git a/script/local/LocalCheckOS.py b/script/local/LocalCheckOS.py index 8daac4e..7fcc3e3 100644 --- a/script/local/LocalCheckOS.py +++ b/script/local/LocalCheckOS.py @@ -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: