incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1370640 - /incubator/tashi/trunk/src/tashi/nodemanager/nodemanagerservice.py
Date Wed, 08 Aug 2012 02:34:03 GMT
Author: stroucki
Date: Wed Aug  8 02:34:03 2012
New Revision: 1370640

URL: http://svn.apache.org/viewvc?rev=1370640&view=rev
Log:
nodemanagerservice: correct hostId's when we get info for the CM

Modified:
    incubator/tashi/trunk/src/tashi/nodemanager/nodemanagerservice.py

Modified: incubator/tashi/trunk/src/tashi/nodemanager/nodemanagerservice.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/nodemanager/nodemanagerservice.py?rev=1370640&r1=1370639&r2=1370640&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/nodemanager/nodemanagerservice.py (original)
+++ incubator/tashi/trunk/src/tashi/nodemanager/nodemanagerservice.py Wed Aug  8 02:34:03
2012
@@ -309,12 +309,18 @@ class NodeManagerService(object):
 	def __getInstance(self, vmId):
 		instance = self.instances.get(vmId, None)
 		if instance is not None:
+			# XXXstroucki: force to my own hostId here. Is this the
+			# right place?
+			instance.hostId = self.id
 			return instance
 
 		# refresh self.instances if not found
 		self.__loadVmInfo()
 		instance = self.instances.get(vmId, None)
 		if instance is not None:
+			# XXXstroucki: force to my own hostId here. Is this the
+			# right place?
+			instance.hostId = self.id
 			return instance
 
 



Mime
View raw message