From: Walter A. Boring IV Date: Thu, 16 Jan 2014 19:44:13 +0000 (-0800) Subject: Added missing accept_transfer to FC X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=f1d30c9bc4ae626883d827d3b0a0458aa9f70820;p=openstack-build%2Fcinder-build.git Added missing accept_transfer to FC 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 --- diff --git a/cinder/volume/driver.py b/cinder/volume/driver.py index da590cc54..509875512 100644 --- a/cinder/volume/driver.py +++ b/cinder/volume/driver.py @@ -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':