set creating template timeout from cmds.timeout

This commit is contained in:
Edison Su 2011-12-20 18:41:00 -08:00
parent 42896d8212
commit 42d45efa44
1 changed files with 2 additions and 2 deletions

View File

@ -1399,7 +1399,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", snapshotPath);
@ -1477,7 +1477,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
String tmpltPath = spd.getTargetPath() + 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", cmd.getVolumePath());
command.add("-t", tmpltPath);
command.add("-n", cmd.getUniqueName() + ".qcow2");