From 42dfe63c2f0a01239ecc03df0bf24856709ce00d Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 19 Jul 2024 19:26:53 +0800 Subject: [PATCH] Update index.py --- plugins/zabbix/index.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/zabbix/index.py b/plugins/zabbix/index.py index cc8abff8a..670d31972 100755 --- a/plugins/zabbix/index.py +++ b/plugins/zabbix/index.py @@ -397,9 +397,7 @@ def installPreInspection(): cmd = "cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F '\"' '{print $2}'" sys_id = mw.execShell(cmd) - - - sysId = sys_id[0].strip() + sysId = sys_id[0].strip().lower() if not sysName in ['debain','centos']: return '不支持该系统'