From a125eca70e0af6ca39e0e03c13d4ead6f13a545d Mon Sep 17 00:00:00 2001 From: Daniel Vincze Date: Fri, 26 Jul 2024 13:11:39 +0300 Subject: [PATCH] Handle CA verification using `--os-cacert` CLI option --- coriolisclient/cli/shell.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coriolisclient/cli/shell.py b/coriolisclient/cli/shell.py index f871327..1e5c44a 100644 --- a/coriolisclient/cli/shell.py +++ b/coriolisclient/cli/shell.py @@ -148,7 +148,9 @@ def create_keystone_session( auth = method(**kwargs) - return session.Session(auth=auth, verify=not args.insecure) + verify = args.os_cacert or not args.insecure + + return session.Session(auth=auth, verify=verify) def create_client(self, args): created_client = None