From: John Griffith Date: Wed, 19 Aug 2015 21:07:49 +0000 (+0000) Subject: Parse out SolidFire account from api response X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=022c544351947b4ad7e3292117136c95e89f9a3f;p=openstack-build%2Fcinder-build.git 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 --- 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 = {}