diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2013-10-07 12:23:00 -0500 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2013-10-07 18:17:48 -0500 |
| commit | 3f9c68f1c6585c1d7f31b75c8719efc47230d86f (patch) | |
| tree | 142933220dc0488998948a08d35c1cb46184e354 /openstackclient/image | |
| parent | bca4cf95789fc30577c796fdf349d072ef087f25 (diff) | |
| download | python-openstackclient-3f9c68f1c6585c1d7f31b75c8719efc47230d86f.tar.gz | |
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
Diffstat (limited to 'openstackclient/image')
| -rw-r--r-- | openstackclient/image/client.py | 7 |
1 files changed, 6 insertions, 1 deletions
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() |
