mirror of https://github.com/apache/cloudstack.git
fix CLOUDSTACK-2128, should save network offering id into usage event
This commit is contained in:
parent
62413eec10
commit
4989f73fda
|
|
@ -2836,7 +2836,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
|
|||
long isDefault = (nic.isDefaultNic()) ? 1 : 0;
|
||||
// insert nic's Id into DB as resource_name
|
||||
UsageEventUtils.publishUsageEvent(EventTypes.EVENT_NETWORK_OFFERING_ASSIGN, vmVO.getAccountId(),
|
||||
vmVO.getDataCenterId(), vmVO.getId(), Long.toString(nic.getId()), nic.getNetworkId(),
|
||||
vmVO.getDataCenterId(), vmVO.getId(), Long.toString(nic.getId()), network.getNetworkOfferingId(),
|
||||
null, isDefault, VirtualMachine.class.getName(), vmVO.getUuid());
|
||||
return nic;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue