mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 09:38:39 +08:00
[skip ci]Update exception msg in check_config (#7875)
Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
This commit is contained in:
parent
c204531f37
commit
34dd07373b
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user