diff --git a/plugins/mysql-apt/index.py b/plugins/mysql-apt/index.py index 84ab5ae68..8c03a31f9 100755 --- a/plugins/mysql-apt/index.py +++ b/plugins/mysql-apt/index.py @@ -2342,13 +2342,13 @@ def installPreInspection(version): if not sysName in ('debian', 'ubuntu'): return '仅支持debian,ubuntu' - if not (sysName == 'debian' and not sysId in('11', '10')): + if (sysName == 'debian' and not sysId in('11', '10')): return 'debian支持10,11' - if not (sysName == 'ubuntu' and version == '5.7' and not sysId in ('18.04')): + if (sysName == 'ubuntu' and version == '5.7' and not sysId in ('18.04')): return 'ubuntu支持18.04' - if not (sysName == 'ubuntu' and version == '8.0' and not sysId in ('18.04', '20.04', '22.04')): + if (sysName == 'ubuntu' and version == '8.0' and not sysId in ('18.04', '20.04', '22.04')): return 'ubuntu支持18.04,20.04,22.04' return 'ok' diff --git a/plugins/mysql-yum/index.py b/plugins/mysql-yum/index.py index 1424e4b4f..c8f4f7f0d 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 not (sysName == 'centos' and version == '5.7' and not sysId in('7',)): + if (sysName == 'centos' and version == '5.7' and not sysId in('7',)): return 'mysql5.7 仅支持centos7' - if not (sysName == 'centos' and version == '8.0' and not sysId in ('7', '8', '9',)): + if (sysName == 'centos' and version == '8.0' and not sysId in ('7', '8', '9',)): return 'mysql8.0 仅支持centos7,8,9' return 'ok'