From: Ben Swartzlander Date: Mon, 24 Sep 2012 16:30:48 +0000 (-0400) Subject: Fix NetAppCmodeISCSIDriver._get_lun_handle() method X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ce60315aaeed74d6d0ee64c825c4c2b4739064cc;p=openstack-build%2Fcinder-build.git Fix NetAppCmodeISCSIDriver._get_lun_handle() method bug 1055578 Change-Id: I06da6a9a59fa2320f1cae9698e5e63562e534916 (cherry picked from commit b2627b27dae521d719b90831dcc41695b389712f) --- diff --git a/cinder/volume/netapp.py b/cinder/volume/netapp.py index 46a3a7809..b1a6c1d1b 100644 --- a/cinder/volume/netapp.py +++ b/cinder/volume/netapp.py @@ -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."""