Skip to content

Commit 8920609

Browse files
committed
CLOUDSTACK-5022 - [Automation] Failed to create volume from snapshot in KVM
1 parent ba8be7c commit 8920609

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ public Answer createVolumeFromSnapshot(CopyCommand cmd) {
11591159
DataTO destData = cmd.getDestTO();
11601160
PrimaryDataStoreTO pool = (PrimaryDataStoreTO) destData.getDataStore();
11611161
DataStoreTO imageStore = srcData.getDataStore();
1162-
VolumeObjectTO volume = snapshot.getVolume();
1162+
VolumeObjectTO volume = (VolumeObjectTO)destData;
11631163

11641164
if (!(imageStore instanceof NfsTO)) {
11651165
return new CopyCmdAnswer("unsupported protocol");

0 commit comments

Comments
 (0)