]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove unused method from NetApp iscsi driver
authorAlex Meade <mr.alex.meade@gmail.com>
Mon, 17 Mar 2014 19:16:09 +0000 (15:16 -0400)
committerAlex Meade <mr.alex.meade@gmail.com>
Mon, 17 Mar 2014 19:16:09 +0000 (15:16 -0400)
This removes _get_qos_type() from the NetApp iscsi code
as it is never used.

Change-Id: I903245b5c018bce80bdc0b8edf9ab7241e475fa4

cinder/volume/drivers/netapp/iscsi.py

index 6961b0a9a1a422456e8a42074a2972655d1033eb..f5d8e32d3e02fbfad489675813fff33d06eb1480 100644 (file)
@@ -47,7 +47,6 @@ from cinder.volume.drivers.netapp.utils import get_volume_extra_specs
 from cinder.volume.drivers.netapp.utils import provide_ems
 from cinder.volume.drivers.netapp.utils import set_safe_attr
 from cinder.volume.drivers.netapp.utils import validate_instantiation
-from cinder.volume import volume_types
 
 
 LOG = logging.getLogger(__name__)
@@ -496,16 +495,6 @@ class NetAppDirectISCSIDriver(driver.ISCSIDriver):
                'initiator': initiator})
         self.client.invoke_successfully(igroup_add, True)
 
-    def _get_qos_type(self, volume):
-        """Get the storage service type for a volume."""
-        type_id = volume['volume_type_id']
-        if not type_id:
-            return None
-        volume_type = volume_types.get_volume_type(None, type_id)
-        if not volume_type:
-            return None
-        return volume_type['name']
-
     def _add_lun_to_table(self, lun):
         """Adds LUN to cache table."""
         if not isinstance(lun, NetAppLun):