From 36356cdc5370d0b1493a476eb7c9eb46af61141f Mon Sep 17 00:00:00 2001 From: Suresh Kumar Anaparti Date: Fri, 28 Jun 2024 14:03:46 +0530 Subject: [PATCH] Fixed src datastore on copy check for PowerFlex/ScaleIO storage driver --- .../storage/datastore/driver/ScaleIOPrimaryDataStoreDriver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/driver/ScaleIOPrimaryDataStoreDriver.java b/plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/driver/ScaleIOPrimaryDataStoreDriver.java index 431fddb566ff..600720d594a8 100644 --- a/plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/driver/ScaleIOPrimaryDataStoreDriver.java +++ b/plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/driver/ScaleIOPrimaryDataStoreDriver.java @@ -1153,7 +1153,7 @@ public boolean isSameScaleIOStorageInstance(DataStore srcStore, DataStore destSt @Override public boolean canCopy(DataObject srcData, DataObject destData) { - DataStore srcStore = destData.getDataStore(); + DataStore srcStore = srcData.getDataStore(); DataStore destStore = destData.getDataStore(); if ((srcStore.getRole() == DataStoreRole.Primary && (srcData.getType() == DataObjectType.TEMPLATE || srcData.getType() == DataObjectType.VOLUME)) && (destStore.getRole() == DataStoreRole.Primary && destData.getType() == DataObjectType.VOLUME)) {