cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sate...@apache.org
Subject [30/50] [abbrv] git commit: updated refs/heads/vmware-datamodel to 6a8c2bd
Date Fri, 31 May 2013 07:49:28 GMT
fix CLOUDSTACK-2128, should save network offering id into usage event


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/4989f73f
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/4989f73f
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/4989f73f

Branch: refs/heads/vmware-datamodel
Commit: 4989f73fdaab23cb8d78131163eeb9a0e1ad2856
Parents: 62413ee
Author: Mice Xia <mice_xia@tcloudcomputing.com>
Authored: Thu May 30 15:26:39 2013 +0800
Committer: Mice Xia <mice_xia@tcloudcomputing.com>
Committed: Thu May 30 15:26:39 2013 +0800

----------------------------------------------------------------------
 .../com/cloud/vm/VirtualMachineManagerImpl.java    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4989f73f/server/src/com/cloud/vm/VirtualMachineManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/vm/VirtualMachineManagerImpl.java b/server/src/com/cloud/vm/VirtualMachineManagerImpl.java
index c65514b..568fe55 100755
--- a/server/src/com/cloud/vm/VirtualMachineManagerImpl.java
+++ b/server/src/com/cloud/vm/VirtualMachineManagerImpl.java
@@ -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 {


Mime
View raw message