Skip to content

Commit 23b8196

Browse files
olivierlemaslesebgoa
authored andcommitted
CLOUDSTACK-7006: Restore template ID in ROOT volume usages
Signed-off-by: Sebastien Goasguen <runseb@gmail.com>
1 parent 838a1a8 commit 23b8196

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ public DiskProfile allocateTemplatedVolume(Type type, String name, DiskOffering
668668

669669
offeringId = offering.getId();
670670

671-
UsageEventUtils.publishUsageEvent(EventTypes.EVENT_VOLUME_CREATE, vol.getAccountId(), vol.getDataCenterId(), vol.getId(), vol.getName(), offeringId, null, size,
671+
UsageEventUtils.publishUsageEvent(EventTypes.EVENT_VOLUME_CREATE, vol.getAccountId(), vol.getDataCenterId(), vol.getId(), vol.getName(), offeringId, vol.getTemplateId(), size,
672672
Volume.class.getName(), vol.getUuid(), vol.isDisplayVolume());
673673

674674
_resourceLimitMgr.incrementResourceCount(vm.getAccountId(), ResourceType.volume, vol.isDisplayVolume());

0 commit comments

Comments
 (0)