[BugFix:
add missing reply
@@ -1160,7 +1160,9 @@ public class KvmBackend extends HypervisorBackend {
boolean offline = true;
VolumeInventory volume = msg.getTo();
+ final MergeVolumeSnapshotOnPrimaryStorageReply reply = new MergeVolumeSnapshotOnPrimaryStorageReply();
if (volume.getType().equals(VolumeType.Memory.toString())) {
+ completion.success(reply);
return;
}
@@ -1183,8 +1185,6 @@ public class KvmBackend extends HypervisorBackend {
offline = (state == VmInstanceState.Stopped || state == VmInstanceState.Destroyed);
}
- final MergeVolumeSnapshotOnPrimaryStorageReply reply = new MergeVolumeSnapshotOnPrimaryStorageReply();
-
if (offline) {
OfflineMergeSnapshotCmd cmd = new OfflineMergeSnapshotCmd();
cmd.fullRebase = msg.isFullRebase();
