]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix zfssa driver volume attach to work with latest zfssa software
authorabhiram_moturi <abhiram.moturi@oracle.com>
Thu, 15 Jan 2015 16:31:53 +0000 (11:31 -0500)
committerabhiram moturi <abhiram.moturi@oracle.com>
Thu, 15 Jan 2015 22:04:55 +0000 (22:04 +0000)
This fixes the volume attach issue of the zfssa driver
with the latest zfssa software release and makes it work
for all zfssa versions.

Change-Id: I4b9ceb7788c112ee5998f24b00a07d4346bc6275
Closes-Bug: #1411291

cinder/volume/drivers/zfssa/zfssarest.py

index 6e6981bc692cd4798792c415002dfbf7e21edc7d..36190357ef1c116450e1443b25bd98f57a8abee7 100644 (file)
@@ -445,6 +445,8 @@ class ZFSSAApi(object):
         }
         if 'origin' in val['lun']:
             ret.update({'origin': val['lun']['origin']})
+        if isinstance(ret['number'], list):
+            ret['number'] = ret['number'][0]
 
         return ret