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

Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
pull/7879/head
yanliang567 2021-09-14 13:17:51 +08:00 committed by GitHub
parent c204531f37
commit 34dd07373b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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