From 653290a85c1c8c398c889f198e9b33aacb87325b Mon Sep 17 00:00:00 2001 From: Edison Su Date: Tue, 20 Dec 2011 18:12:26 -0800 Subject: [PATCH] set creating template timeout from cmds.timeout --- .../agent/resource/computing/LibvirtComputingResource.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/src/com/cloud/agent/resource/computing/LibvirtComputingResource.java b/agent/src/com/cloud/agent/resource/computing/LibvirtComputingResource.java index 98b5d794709..4d9ceb4bfee 100644 --- a/agent/src/com/cloud/agent/resource/computing/LibvirtComputingResource.java +++ b/agent/src/com/cloud/agent/resource/computing/LibvirtComputingResource.java @@ -1427,7 +1427,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv _storage.mkdirs(templatePath); String tmplPath = templateInstallFolder + File.separator + tmplFileName; - Script command = new Script(_createTmplPath, _timeout, s_logger); + Script command = new Script(_createTmplPath, _cmdsTimeout, s_logger); command.add("-t", templatePath); command.add("-n", tmplFileName); command.add("-f", snapshot.getPath()); @@ -1489,7 +1489,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv String tmpltPath = secondaryStorage.getLocalPath() + File.separator + templateInstallFolder; _storage.mkdirs(tmpltPath); - Script command = new Script(_createTmplPath, _timeout, s_logger); + Script command = new Script(_createTmplPath, _cmdsTimeout, s_logger); command.add("-f", disk.getPath()); command.add("-t", tmpltPath); command.add("-n", cmd.getUniqueName() + ".qcow2");