From 34dd07373ba28bf1f85d6f380cf4e37402403ecb Mon Sep 17 00:00:00 2001 From: yanliang567 <82361606+yanliang567@users.noreply.github.com> Date: Tue, 14 Sep 2021 13:17:51 +0800 Subject: [PATCH] [skip ci]Update exception msg in check_config (#7875) Signed-off-by: yanliang567 --- tests/python_client/chaos/chaos_commons.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/python_client/chaos/chaos_commons.py b/tests/python_client/chaos/chaos_commons.py index c0e325e3ba..af00a20c75 100644 --- a/tests/python_client/chaos/chaos_commons.py +++ b/tests/python_client/chaos/chaos_commons.py @@ -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