From f1d30c9bc4ae626883d827d3b0a0458aa9f70820 Mon Sep 17 00:00:00 2001 From: "Walter A. Boring IV" Date: Thu, 16 Jan 2014 11:44:13 -0800 Subject: [PATCH] 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 --- cinder/volume/driver.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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': -- 2.45.2