From 022c544351947b4ad7e3292117136c95e89f9a3f Mon Sep 17 00:00:00 2001 From: John Griffith Date: Wed, 19 Aug 2015 21:07:49 +0000 Subject: [PATCH] Parse out SolidFire account from api response In the SolidFire create-cache account routine we broke the response check and are trying to use the entire api response as if it were an account object. This patch just pulls the actual account object out of the response instead of using the entire API response. Change-Id: Ief2d9ae494475f5ba3688c521e11d51a244b5c28 Closes-Bug: #1486744 --- cinder/volume/drivers/solidfire.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/drivers/solidfire.py b/cinder/volume/drivers/solidfire.py index c209c088b..0abe6755b 100644 --- a/cinder/volume/drivers/solidfire.py +++ b/cinder/volume/drivers/solidfire.py @@ -585,7 +585,7 @@ class SolidFireDriver(san.SanISCSIDriver): sf_account = self._issue_api_request( 'GetAccountByID', - {'accountID': self.template_account_id}) + {'accountID': self.template_account_id})['result']['account'] template_vol = self._do_volume_create(sf_account, params) tvol = {} -- 2.45.2