Skip to content

Commit 983f164

Browse files
Fixed src datastore on copy check for PowerFlex/ScaleIO storage driver (apache#9310)
1 parent 644f3a3 commit 983f164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/driver/ScaleIOPrimaryDataStoreDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ public boolean isSameScaleIOStorageInstance(DataStore srcStore, DataStore destSt
11531153

11541154
@Override
11551155
public boolean canCopy(DataObject srcData, DataObject destData) {
1156-
DataStore srcStore = destData.getDataStore();
1156+
DataStore srcStore = srcData.getDataStore();
11571157
DataStore destStore = destData.getDataStore();
11581158
if ((srcStore.getRole() == DataStoreRole.Primary && (srcData.getType() == DataObjectType.TEMPLATE || srcData.getType() == DataObjectType.VOLUME))
11591159
&& (destStore.getRole() == DataStoreRole.Primary && destData.getType() == DataObjectType.VOLUME)) {

0 commit comments

Comments
 (0)