You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tashi-commits@incubator.apache.org by st...@apache.org on 2012/08/08 02:34:03 UTC
svn commit: r1370640 -
/incubator/tashi/trunk/src/tashi/nodemanager/nodemanagerservice.py
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