From 3f9c68f1c6585c1d7f31b75c8719efc47230d86f Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Mon, 7 Oct 2013 12:23:00 -0500 Subject: Add options to support TLS certificate verification Add --os-cacert and --verify|--insecure options using the same sematics as the other project CLIs. --verify is included for completeness. Bug: 1236608 Change-Id: I8a116d790db5aa4cb17a2207efedce7cb229eba3 --- openstackclient/image/client.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'openstackclient/image') diff --git a/openstackclient/image/client.py b/openstackclient/image/client.py index 70bef1c8..d56ca3b2 100644 --- a/openstackclient/image/client.py +++ b/openstackclient/image/client.py @@ -40,7 +40,12 @@ def make_client(instance): if not instance._url: instance._url = instance.get_endpoint_for_service_type(API_NAME) - return image_client(instance._url, token=instance._token) + return image_client( + instance._url, + token=instance._token, + cacert=instance._cacert, + insecure=instance._insecure, + ) # NOTE(dtroyer): glanceclient.v1.image.ImageManager() doesn't have a find() -- cgit v1.2.1