mirror of https://github.com/apache/cloudstack.git
bug 7925: Added usage event for private template creation
status 7925: resolved fixed
This commit is contained in:
parent
50540b2bba
commit
e512413f06
|
|
@ -1721,6 +1721,9 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
|||
templateHostVO.setPhysicalSize(answer.getphysicalSize());
|
||||
_templateHostDao.persist(templateHostVO);
|
||||
|
||||
UsageEventVO usageEvent = new UsageEventVO(EventTypes.EVENT_TEMPLATE_CREATE, privateTemplate.getAccountId(), secondaryStorageHost.getDataCenterId(), privateTemplate.getId(), privateTemplate.getName(), null, null , templateHostVO.getSize());
|
||||
_usageEventDao.persist(usageEvent);
|
||||
|
||||
// Increment the number of templates
|
||||
_accountMgr.incrementResourceCount(volume.getAccountId(), ResourceType.template);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue