Skip to content

Commit 49900a8

Browse files
author
Kelven Yang
committed
1) Add VMDK format
2) Make console proxy servlet explictly return content-type header for console proxy page (this is a bug fix change)
1 parent 5fb852f commit 49900a8

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

api/src/com/cloud/storage/Storage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public static enum ImageFormat {
2222
QCOW2(true, true, false),
2323
RAW(false, false, false),
2424
VHD(true, true, true),
25-
ISO(false, false, false);
25+
ISO(false, false, false),
26+
VMDK(true, true, true);
2627

2728
private final boolean thinProvisioned;
2829
private final boolean supportSparse;

server/src/com/cloud/servlet/ConsoleProxyServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ private String composeConsoleAccessUrl(String rootUrl, VMInstanceVO vm, HostVO h
281281
}
282282

283283
private void sendResponse(HttpServletResponse resp, String content) {
284-
try {
284+
try {
285285
resp.getWriter().print(content);
286286
} catch(IOException e) {
287287
if(s_logger.isInfoEnabled())

0 commit comments

Comments
 (0)