Correct CA cert argument for glanceclient

Heat need to pass the CA cert to glanceclient to load image data
during stack creation when glance api is configured with SSL.
Currently the client is passing the wrong cert key to glanceclient.
The key should be 'cacert' instead of 'ca_file'.

Change-Id: Ie542dda1354776e62507240c917c1cffbc222f17
Closes-Bug: #1384626
This commit is contained in:
ZHU ZHU 2014-10-23 06:45:38 -05:00
parent ce6dac20fe
commit fa7fd9d988

View File

@ -41,7 +41,7 @@ class GlanceClientPlugin(client_plugin.ClientPlugin):
'project_id': con.tenant,
'token': self.auth_token,
'endpoint_type': endpoint_type,
'ca_file': self._get_client_option('glance', 'ca_file'),
'cacert': self._get_client_option('glance', 'ca_file'),
'cert_file': self._get_client_option('glance', 'cert_file'),
'key_file': self._get_client_option('glance', 'key_file'),
'insecure': self._get_client_option('glance', 'insecure')