]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Added missing accept_transfer to FC
authorWalter A. Boring IV <walter.boring@hp.com>
Thu, 16 Jan 2014 19:44:13 +0000 (11:44 -0800)
committerWalter A. Boring IV <walter.boring@hp.com>
Thu, 16 Jan 2014 20:10:00 +0000 (12:10 -0800)
The base class FibreChannelDriver was
missing the new accept_transfer method.
This was caught while running the devstack
driver certification tests again the
3PAR FC driver.
This patch adds the missing method to the
base VolumeDriver.

Change-Id: I0aa91a4f11edd03eee7607d15317b89c30732cb7
Closes-Bug: #1269633

cinder/volume/driver.py

index da590cc5420e8852bcfa121454bda06a0e90538b..50987551228f73e129afb13e173c19d9f29c22c8 100644 (file)
@@ -503,6 +503,10 @@ class VolumeDriver(object):
         """
         return False
 
+    def accept_transfer(self, context, volume, new_user, new_project):
+        """Accept the transfer of a volume for a new user/project."""
+        pass
+
 
 class ISCSIDriver(VolumeDriver):
     """Executes commands relating to ISCSI volumes.
@@ -733,9 +737,6 @@ class ISCSIDriver(VolumeDriver):
         data['QoS_support'] = False
         self._stats = data
 
-    def accept_transfer(self, context, volume, new_user, new_project):
-        pass
-
     def get_target_admin(self):
         root_helper = utils.get_root_helper()
         if CONF.iscsi_helper == 'iseradm':