Skip to content

Commit 809dc33

Browse files
authored
Fix raw templates not being downloaded (#3993)
1 parent 78fda2d commit 809dc33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/src/main/java/org/apache/cloudstack/utils/imagestore/ImageStoreUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static String checkTemplateFormat(String path, String uripath) {
5757
return "";
5858
}
5959
// raw
60-
if ((output.contains("x86 boot") || output.contains("data")) && (isCorrectExtension(uripath, "raw") || isCorrectExtension(uripath, "img"))) {
60+
if ((output.contains("x86 boot") || output.contains("DOS/MBR boot sector") || output.contains("data")) && (isCorrectExtension(uripath, "raw") || isCorrectExtension(uripath, "img"))) {
6161
s_logger.debug("File at path " + path + " looks like a raw image :" + output);
6262
return "";
6363
}

0 commit comments

Comments
 (0)