From dad3c295d47aea8ae4dea7828af7179be048d2c8 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 8 Nov 2022 22:15:20 +0800 Subject: [PATCH] Update index.py --- plugins/mysql-yum/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mysql-yum/index.py b/plugins/mysql-yum/index.py index cb3bbf480..1424e4b4f 100755 --- a/plugins/mysql-yum/index.py +++ b/plugins/mysql-yum/index.py @@ -2321,10 +2321,10 @@ def installPreInspection(version): if not sysName in ('centos',): return '仅支持centos' - if sysName == 'centos' and version == '5.7' and sysId != '7': + if not (sysName == 'centos' and version == '5.7' and not sysId in('7',)): return 'mysql5.7 仅支持centos7' - if sysName == 'centos' and version == '8.0' and not sysId in ('7', '8', '9',): + if not (sysName == 'centos' and version == '8.0' and not sysId in ('7', '8', '9',)): return 'mysql8.0 仅支持centos7,8,9' return 'ok'