]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
GlusterFS: Returning provider location of volume from snapshot
authorBharat Kumar Kobagana <bharat.kobagana@redhat.com>
Wed, 8 Apr 2015 06:32:32 +0000 (12:02 +0530)
committerBharat Kumar Kobagana <bharat.kobagana@redhat.com>
Wed, 8 Apr 2015 12:04:02 +0000 (17:34 +0530)
This patch returns the provider location of volume, which is
created from snapshot.

Partial-Bug: 1441050
Reported-By: Deepak C Shetty <deepakcs@redhat.com>
Change-Id: I5994f2f6c125888d442055d9e65355f0af1b22f4

cinder/volume/drivers/glusterfs.py

index 559e12b9b3097333490fb9cd9d40a142c2197fec..01853ac54032467cf10896d7e998d0bdd83b3813 100644 (file)
@@ -223,7 +223,7 @@ class GlusterfsDriver(remotefs_drv.RemoteFSSnapDriver):
 
     @locked_volume_id_operation
     def create_volume_from_snapshot(self, volume, snapshot):
-        self._create_volume_from_snapshot(volume, snapshot)
+        return self._create_volume_from_snapshot(volume, snapshot)
 
     def _copy_volume_from_snapshot(self, snapshot, volume, volume_size):
         """Copy data from snapshot to destination volume.