stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject [1/2] stratos git commit: Update the InstanceCleanupClusterEvent with Python Agent
Date Mon, 22 Dec 2014 15:21:46 GMT
Repository: stratos
Updated Branches:
  refs/heads/master e08091cf7 -> e73b0b157


Update the InstanceCleanupClusterEvent with Python Agent


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

Branch: refs/heads/master
Commit: e73b0b1579b1e295f55713bf22f98ab5a223f31f
Parents: dde8fb9
Author: gayan <gayan@puppet.gayan.org>
Authored: Mon Dec 22 20:50:37 2014 +0530
Committer: gayan <gayan@puppet.gayan.org>
Committed: Mon Dec 22 20:50:56 2014 +0530

----------------------------------------------------------------------
 .../modules/event/instance/notifier/events.py               | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/e73b0b15/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/event/instance/notifier/events.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/event/instance/notifier/events.py
b/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/event/instance/notifier/events.py
index c42182d..8456854 100644
--- a/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/event/instance/notifier/events.py
+++ b/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/event/instance/notifier/events.py
@@ -54,16 +54,19 @@ class ArtifactUpdatedEvent:
 
 
 class InstanceCleanupClusterEvent:
-    def __init__(self, cluster_id):
+    def __init__(self, cluster_id, cluster_instance_id):
         self.cluster_id = cluster_id
         """ :type : str  """
+        self.cluster_instance_id = cluster_instance_id
+        """ :type : str  """
 
     @staticmethod
     def create_from_json(json_str):
         json_obj = json.loads(json_str)
-        c_id = json_obj["clusterId"] if "clusterId" in json_obj else None
+        cluster_id = json_obj["clusterId"] if "clusterId" in json_obj else None
+        instance_cluster_id = json_obj["instanceClusterId"] if "clusterId" in json_obj else
None
 
-        return InstanceCleanupClusterEvent(c_id)
+        return InstanceCleanupClusterEvent(cluster_id, instance_cluster_id)
 
 
 class InstanceCleanupMemberEvent:


Mime
View raw message