mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Update built-in template size in vm_template table.
This commit is contained in:
parent
dafe2654b6
commit
9777e56e8e
@ -305,6 +305,10 @@ public class TemplateServiceImpl implements TemplateService {
|
|||||||
tmpltStore.setSize(tmpltInfo.getSize());
|
tmpltStore.setSize(tmpltInfo.getSize());
|
||||||
tmpltStore.setPhysicalSize(tmpltInfo.getPhysicalSize());
|
tmpltStore.setPhysicalSize(tmpltInfo.getPhysicalSize());
|
||||||
tmpltStore.setLastUpdated(new Date());
|
tmpltStore.setLastUpdated(new Date());
|
||||||
|
// update size in vm_template table
|
||||||
|
VMTemplateVO tmlpt = _templateDao.findById(tmplt.getId());
|
||||||
|
tmlpt.setSize(tmpltInfo.getSize());
|
||||||
|
_templateDao.update(tmplt.getId(), tmlpt);
|
||||||
|
|
||||||
if (tmpltInfo.getSize() > 0) {
|
if (tmpltInfo.getSize() > 0) {
|
||||||
long accountId = tmplt.getAccountId();
|
long accountId = tmplt.getAccountId();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user