mirror of https://github.com/apache/cloudstack.git
bug 6987:
do not delete template from secondary storage in 2.1.x , it is needed by snapshot status 6987: resolved fixed
This commit is contained in:
parent
7a42f9c96e
commit
c22afd71c2
|
|
@ -485,9 +485,9 @@ public class DownloadMonitorImpl implements DownloadMonitor {
|
|||
|
||||
for (String uniqueName: templateInfo.keySet()) {
|
||||
TemplateInfo tInfo = templateInfo.get(uniqueName);
|
||||
DeleteTemplateCommand dtCommand = new DeleteTemplateCommand(tInfo.getInstallPath());
|
||||
long result = send(sserverId, dtCommand, null);
|
||||
s_logger.info("Deleted template " + tInfo.getTemplateName() + " on secondary storage " + sserverId + " since it isn't in the database, result=" + result);
|
||||
//DeleteTemplateCommand dtCommand = new DeleteTemplateCommand(tInfo.getInstallPath());
|
||||
//long result = send(sserverId, dtCommand, null);
|
||||
s_logger.info("Template " + tInfo.getTemplateName() + " is removed in DB, but we still keep it in Secondary Storage in case snapshot will use it");
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue