mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-4287: Template sync should remove template_store_ref entry
for corrupted template.
This commit is contained in:
parent
34823eb85a
commit
ba4a05eed1
@ -312,6 +312,8 @@ public class TemplateServiceImpl implements TemplateService {
|
|||||||
+ "is corrupted, please check in image store: " + tmpltStore.getDataStoreId();
|
+ "is corrupted, please check in image store: " + tmpltStore.getDataStoreId();
|
||||||
s_logger.warn(msg);
|
s_logger.warn(msg);
|
||||||
} else {
|
} else {
|
||||||
|
s_logger.info("Removing template_store_ref entry for corrupted template " + tmplt.getName());
|
||||||
|
_vmTemplateStoreDao.remove(tmpltStore.getId());
|
||||||
toBeDownloaded.add(tmplt);
|
toBeDownloaded.add(tmplt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user