mirror of https://github.com/apache/cloudstack.git
Fixed CLOUDSTACK-6983: unable to register lxc template
added a check for tar.gz format in checktemplate
This commit is contained in:
parent
9dc322d46f
commit
58bad41910
|
|
@ -61,6 +61,13 @@ public class TemplateUtils {
|
|||
s_logger.debug("File at path " + path + " looks like ova : " + output);
|
||||
return "";
|
||||
}
|
||||
|
||||
//lxc
|
||||
if (output.contains("POSIX tar") && isCorrectExtension(url, "tar")) {
|
||||
s_logger.debug("File at path " + path + " looks like just tar : " + output);
|
||||
return "";
|
||||
}
|
||||
|
||||
if (output.contains("ISO 9660") && isCorrectExtension(url, "iso")) {
|
||||
s_logger.debug("File at path " + path + " looks like an iso : " + output);
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Reference in New Issue