From b94d1455514be0e90e2ccdf1f865dc1fe570a1d2 Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Wed, 1 Aug 2018 08:52:08 -0400 Subject: [PATCH] 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 (cherry picked from commit c25c30245c7bf53687f71af43b78b7414ac022c5) --- cinder/volume/drivers/nimble.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/drivers/nimble.py b/cinder/volume/drivers/nimble.py index cd49a576bde..b3ed6c4ff44 100644 --- a/cinder/volume/drivers/nimble.py +++ b/cinder/volume/drivers/nimble.py @@ -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):