mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fixed bug with snapshotting failing as 'not implemented'
Signed-off-by: Edison Su <sudison@gmail.com>
This commit is contained in:
parent
b6d12f794f
commit
dad27aaf40
@ -34,7 +34,6 @@ import com.cloud.agent.api.to.DataObjectType;
|
||||
import com.cloud.agent.api.to.DataStoreTO;
|
||||
import com.cloud.agent.api.to.DataTO;
|
||||
import com.cloud.agent.api.to.DiskTO;
|
||||
import com.cloud.agent.api.to.NfsTO;
|
||||
import com.cloud.storage.DataStoreRole;
|
||||
import com.cloud.storage.Volume;
|
||||
|
||||
@ -84,7 +83,7 @@ public class StorageSubsystemCommandHandlerBase implements StorageSubsystemComma
|
||||
return processor.createTemplateFromVolume(cmd);
|
||||
}
|
||||
} else if (srcData.getObjectType() == DataObjectType.SNAPSHOT && destData.getObjectType() == DataObjectType.SNAPSHOT &&
|
||||
destData.getDataStore().getRole() == DataStoreRole.Primary) {
|
||||
srcData.getDataStore().getRole() == DataStoreRole.Primary) {
|
||||
return processor.backupSnapshot(cmd);
|
||||
} else if (srcData.getObjectType() == DataObjectType.SNAPSHOT && destData.getObjectType() == DataObjectType.VOLUME) {
|
||||
return processor.createVolumeFromSnapshot(cmd);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user