From 2b058164e029f2c6e8a9df311cb51f68d76e2349 Mon Sep 17 00:00:00 2001 From: Dick Tang Date: Tue, 14 Feb 2023 12:44:46 +0800 Subject: [PATCH] handle verify-ssl: None case --- awscli_plugin_endpoint/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awscli_plugin_endpoint/__init__.py b/awscli_plugin_endpoint/__init__.py index 3ec95e9..376af65 100644 --- a/awscli_plugin_endpoint/__init__.py +++ b/awscli_plugin_endpoint/__init__.py @@ -43,7 +43,7 @@ def set_verify_from_profile(parsed_args, **kwargs): # By default verify_ssl is set to true # if --no-verify-ssl is specified, parsed_args.verify_ssl is False # so keep it - if verify_ssl: + if verify_ssl or verify_ssl is None: session = kwargs['session'] # Set profile to session so we can load profile from config if parsed_args.profile: