Skip to content

Commit

Permalink
Add validation check to cacert switch (flyteorg#787)
Browse files Browse the repository at this point in the history
Signed-off-by: Yee Hing Tong <wild-endeavor@users.noreply.github.com>
Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net>
  • Loading branch information
wild-endeavor committed Dec 20, 2021
1 parent 483765a commit 99b406f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flytekit/clis/flyte_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!")


########################################################################################################################
Expand Down

0 comments on commit 99b406f

Please sign in to comment.