Browse Source

nimble: Fix missing ssl support

The requests.get in the get_query method was always disabling the
ssl certificate checck. Use the "nimble_verify_certificate"
configuration option to allow the user to enable or disable it
like the rest of the requests usage in the driver.

Change-Id: If15948a19a0df2d57f2da84c0774bc4ceb1fff60
Signed-off-by: Chuck Short <chucks@redhat.com>
(cherry picked from commit c25c30245c)
changes/22/734722/1
Chuck Short 2 years ago
committed by Keith Berger
parent
commit
b94d145551
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cinder/volume/drivers/nimble.py

+ 1
- 1
cinder/volume/drivers/nimble.py View File

@@ -1826,7 +1826,7 @@ class NimbleRestAPIExecutor(object):
def get_query(self, api, query):
url = self.uri + api
return requests.get(url, headers=self.headers,
params=query, verify=False)
params=query, verify=self.verify)

@_connection_checker
def put(self, api, payload):


Loading…
Cancel
Save