Fixed src datastore on copy check for PowerFlex/ScaleIO storage driver (#9310)

This commit is contained in:
Suresh Kumar Anaparti 2024-06-28 18:46:06 +05:30 committed by GitHub
parent 644f3a3f48
commit 983f164c57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1153,7 +1153,7 @@ public class ScaleIOPrimaryDataStoreDriver implements PrimaryDataStoreDriver {
@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)) {