]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Parse out SolidFire account from api response
authorJohn Griffith <john.griffith8@gmail.com>
Wed, 19 Aug 2015 21:07:49 +0000 (21:07 +0000)
committerJohn Griffith <john.griffith8@gmail.com>
Wed, 19 Aug 2015 21:11:11 +0000 (21:11 +0000)
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

index c209c088b620ef11e354f92d9becaacf4566fb36..0abe6755b003f6c7efdad4399ba2be34a51271c5 100644 (file)
@@ -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 = {}