CLOUDSTACK-5456: Download root volume when vm is in stopped state fails on hyper-v. Made

changes to make sure the volume entry is created in the db with the right image format.
This commit is contained in:
Devdeep Singh 2013-12-26 19:11:11 +05:30
parent ad33f0ad66
commit 30d55cf0c4

View File

@ -628,6 +628,8 @@ public class VolumeOrchestrator extends ManagerBase implements VolumeOrchestrati
return ImageFormat.OVA;
} else if (hyperType == HypervisorType.Ovm) {
return ImageFormat.RAW;
} else if (hyperType == HypervisorType.Hyperv) {
return ImageFormat.VHD;
} else {
return null;
}