Skip to content

Commit 7dce3d8

Browse files
wornet-mwoMichael Wodniok
andauthored
[linstor] Fix revertSnapshot (#9271)
Signed-off-by: Michael Wodniok (WorNet AG) <[email protected]> Co-authored-by: Michael Wodniok <[email protected]>
1 parent 84b91cc commit 7dce3d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/storage/volume/linstor/src/main/java/org/apache/cloudstack/storage/datastore/driver/LinstorPrimaryDataStoreDriverImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ private String revertSnapshotFromImageStore(
720720
private String doRevertSnapshot(final SnapshotInfo snapshot, final VolumeInfo volumeInfo) {
721721
final StoragePool pool = (StoragePool) volumeInfo.getDataStore();
722722
final DevelopersApi linstorApi = LinstorUtil.getLinstorAPI(pool.getHostAddress());
723-
final String rscName = LinstorUtil.RSC_PREFIX + volumeInfo.getUuid();
723+
final String rscName = LinstorUtil.RSC_PREFIX + volumeInfo.getPath();
724724
String resultMsg;
725725
try {
726726
if (snapshot.getDataStore().getRole() == DataStoreRole.Primary) {

0 commit comments

Comments
 (0)