From cd2fe60e1e5c8cc225e49c17b4eda2c6fc683702 Mon Sep 17 00:00:00 2001 From: Yee Hing Tong Date: Mon, 20 Dec 2021 12:29:25 -0800 Subject: [PATCH] add check Signed-off-by: Yee Hing Tong --- flytekit/clis/flyte_cli/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flytekit/clis/flyte_cli/main.py b/flytekit/clis/flyte_cli/main.py index 4dab451827..5686854fad 100644 --- a/flytekit/clis/flyte_cli/main.py +++ b/flytekit/clis/flyte_cli/main.py @@ -623,6 +623,8 @@ def _flyte_cli(ctx, host, config, project, domain, name, cacert, insecure): """ Command line tool for interacting with all entities on the Flyte Platform. """ + if cacert and insecure: + raise _user_exceptions.FlyteValidationException(f"Should not pass both certificate and insecure options!") ########################################################################################################################