]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix NetAppCmodeISCSIDriver._get_lun_handle() method
authorBen Swartzlander <bswartz@netapp.com>
Mon, 24 Sep 2012 16:30:48 +0000 (12:30 -0400)
committerJohn Griffith <john.griffith@solidfire.com>
Tue, 25 Sep 2012 21:56:20 +0000 (15:56 -0600)
bug 1055578

Change-Id: I06da6a9a59fa2320f1cae9698e5e63562e534916
(cherry picked from commit b2627b27dae521d719b90831dcc41695b389712f)

cinder/volume/netapp.py

index 46a3a780916a9ddc4c58be1b435c6cdf21297861..b1a6c1d1bb64b7bd17bc59ffd93b6af7745a4135 100644 (file)
@@ -1279,7 +1279,7 @@ class NetAppCmodeISCSIDriver(driver.ISCSIDriver):
         if not name in self.lun_table:
             LOG.warn(_("Could not find handle for LUN named %s") % name)
             return None
-        return self.lun_table[name]
+        return self.lun_table[name].handle
 
     def _create_dict_from_meta(self, metadata):
         """Creates dictionary from metadata array."""