stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject [2/2] stratos git commit: Update the InstanceCleanupClusterEvent with Python Agent
Date Mon, 22 Dec 2014 15:21:47 GMT
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/dde8fb99
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/dde8fb99
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/dde8fb99

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

----------------------------------------------------------------------
 .../cartridgeagent/cartridgeagent/agent.py                     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/dde8fb99/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/agent.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/agent.py
b/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/agent.py
index ed85579..37590d1 100644
--- a/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/agent.py
+++ b/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/agent.py
@@ -182,9 +182,9 @@ class CartridgeAgent(threading.Thread):
         event_obj = InstanceCleanupClusterEvent.create_from_json(msg.payload)
         cluster_in_payload = self.cartridge_agent_config.cluster_id
         cluster_in_event = event_obj.cluster_id
-        instance_in_payload = self.cartridge_agent_config.instance_id
-        instance_in_event = event_obj.instance_id
-        
+        instance_in_payload = self.cartridge_agent_config.cluster_instance_id
+        instance_in_event = event_obj.cluster_instance_id
+
         if cluster_in_event == cluster_in_payload and instance_in_payload == instance_in_event:
             CartridgeAgent.extension_handler.on_instance_cleanup_cluster_event(event_obj)
 


Mime
View raw message