From b3cb5dd13a5045c4e8d19e636583b0b9b362e3e0 Mon Sep 17 00:00:00 2001 From: z00793368 Date: Tue, 19 Sep 2023 17:23:50 +0800 Subject: [PATCH] =?UTF-8?q?A13=E6=A3=80=E6=9F=A5=E9=A1=B9=E6=94=AF?= =?UTF-8?q?=E6=8C=81kylin=E6=93=8D=E4=BD=9C=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/local/LocalCheckOS.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/local/LocalCheckOS.py b/script/local/LocalCheckOS.py index 6f39fd6..9077ce0 100644 --- a/script/local/LocalCheckOS.py +++ b/script/local/LocalCheckOS.py @@ -1392,7 +1392,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" @@ -1407,7 +1407,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: