From a7648cdbfd0ae196293c54ad369bc80308341664 Mon Sep 17 00:00:00 2001 From: cheng_jinsong Date: Wed, 17 May 2023 11:40:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9'secon'=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cheng_jinsong --- tools/startup_guard/startup_checker/cmds_rule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/startup_guard/startup_checker/cmds_rule.py b/tools/startup_guard/startup_checker/cmds_rule.py index e0c28b7..0c98580 100644 --- a/tools/startup_guard/startup_checker/cmds_rule.py +++ b/tools/startup_guard/startup_checker/cmds_rule.py @@ -112,7 +112,7 @@ class cmdRule(BaseRule): passed = True for key, item in parser._services.items(): - if item.get("secon") is None: + if item.get("secon") == "": output_str = "%s \'secon\' is empty" % key self.warn("%s" % str(output_str)) passed = False -- Gitee