Switch from VMDK to OVA on vmware image format

This commit is contained in:
Kelven Yang 2010-09-13 14:39:58 -07:00 committed by edison
parent 5b2740f3f9
commit d33d1a632d
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ public class Storage {
RAW(false, false, false),
VHD(true, true, true),
ISO(false, false, false),
VMDK(true, true, true, "ova");
OVA(true, true, true, "ova");
private final boolean thinProvisioned;
private final boolean supportSparse;

View File

@ -26,7 +26,7 @@ public class VmdkProcessor implements Processor {
}
s_logger.info("Template processing. templatePath: " + templatePath + ", templateName: " + templateName);
String templateFilePath = templatePath + File.separator + templateName + "." + ImageFormat.VMDK.getFileExtension();
String templateFilePath = templatePath + File.separator + templateName + "." + ImageFormat.OVA.getFileExtension();
if (!_storage.exists(templateFilePath)) {
if(s_logger.isInfoEnabled())
s_logger.info("Unable to find the vmware template file: " + templateFilePath);
@ -34,8 +34,8 @@ public class VmdkProcessor implements Processor {
}
FormatInfo info = new FormatInfo();
info.format = ImageFormat.VMDK;
info.filename = templateName + "." + ImageFormat.VMDK.getFileExtension();
info.format = ImageFormat.OVA;
info.filename = templateName + "." + ImageFormat.OVA.getFileExtension();
info.size = _storage.getSize(templateFilePath);
info.virtualSize = info.size;
return info;