mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7123: set the timeout to 60s, when run the file command
This commit is contained in:
parent
9fb93fe5b3
commit
51c14106d8
|
|
@ -34,7 +34,7 @@ public class TemplateUtils {
|
|||
if (isCompressedExtension(url)) {
|
||||
command = "file -z ";
|
||||
}
|
||||
String output = Script.runSimpleBashScript(command + path + " | cut -d: -f2", 1000);
|
||||
String output = Script.runSimpleBashScript(command + path + " | cut -d: -f2", 60000);
|
||||
|
||||
// vmdk
|
||||
if ((output.contains("VMware") || output.contains("data")) && isCorrectExtension(url, "vmdk")) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue