incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alena1...@apache.org
Subject [1/43] git commit: VPC: set event details in the method called by API
Date Wed, 08 Aug 2012 18:55:23 GMT
Updated Branches:
  refs/heads/vpc b74a6a7a9 -> a5f99a2ca


VPC: set event details in the method called by API


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

Branch: refs/heads/vpc
Commit: a5f99a2ca0aedebf236c1a217cf20dd24cf575ea
Parents: 048c5e5
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Authored: Wed Aug 8 11:52:46 2012 -0700
Committer: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Committed: Wed Aug 8 11:52:46 2012 -0700

----------------------------------------------------------------------
 .../src/com/cloud/network/vpc/VpcManagerImpl.java  |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/a5f99a2c/server/src/com/cloud/network/vpc/VpcManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/vpc/VpcManagerImpl.java b/server/src/com/cloud/network/vpc/VpcManagerImpl.java
index 5c760da..32659b0 100644
--- a/server/src/com/cloud/network/vpc/VpcManagerImpl.java
+++ b/server/src/com/cloud/network/vpc/VpcManagerImpl.java
@@ -294,7 +294,10 @@ public class VpcManagerImpl implements VpcManager, Manager{
         
         svcProviderMap.put(Service.Gateway, defaultProviders);
                
-        return createVpcOffering(name, displayText, svcProviderMap, false, null);
+        VpcOffering offering = createVpcOffering(name, displayText, svcProviderMap, false,
null);
+        UserContext.current().setEventDetails(" Id: " + offering.getId() + " Name: " + name);
+        
+        return offering;
     }
 
     
@@ -328,7 +331,6 @@ public class VpcManagerImpl implements VpcManager, Manager{
         }
         txn.commit();
 
-        UserContext.current().setEventDetails(" Id: " + offering.getId() + " Name: " + name);
         return offering;
     }
     


Mime
View raw message