未验证 提交 34dd0737 编写于 作者: Y yanliang567 提交者: GitHub

[skip ci]Update exception msg in check_config (#7875)

Signed-off-by: Nyanliang567 <yanliang.qiao@zilliz.com>
上级 c204531f
......@@ -9,13 +9,13 @@ from utils.util_log import test_log as log
def check_config(chaos_config):
if not chaos_config.get('kind', None):
raise Exception("kind is must be specified")
raise Exception("kind must be specified")
if not chaos_config.get('spec', None):
raise Exception("spec is must be specified")
raise Exception("spec must be specified")
if "action" not in chaos_config.get('spec', None):
raise Exception("action is must be specified in spec")
raise Exception("action must be specified in spec")
if "selector" not in chaos_config.get('spec', None):
raise Exception("selector is must be specified in spec")
raise Exception("selector must be specified in spec")
return True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册