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 3d530708ad
commit 7e54ca8831
1 changed files with 2 additions and 0 deletions

View File

@ -696,6 +696,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;
}