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 mr...@apache.org on 2009/09/23 18:53:57 UTC
svn commit: r818203 -
/incubator/tashi/trunk/src/tashi/rpycservices/rpyctypes.py
Author: mryan3
Date: Wed Sep 23 18:53:56 2009
New Revision: 818203
URL: http://svn.apache.org/viewvc?rev=818203&view=rev
Log:
Added a notes field to the host definition
Can be used for anything, but we use it to denote why a node is down (disk failure, memory errors, etc)
Modified:
incubator/tashi/trunk/src/tashi/rpycservices/rpyctypes.py
Modified: incubator/tashi/trunk/src/tashi/rpycservices/rpyctypes.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/rpycservices/rpyctypes.py?rev=818203&r1=818202&r2=818203&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/rpycservices/rpyctypes.py (original)
+++ incubator/tashi/trunk/src/tashi/rpycservices/rpyctypes.py Wed Sep 23 18:53:56 2009
@@ -68,6 +68,7 @@
self.memory = None
self.cores = None
self.version = None
+ self.notes = None
if isinstance(d, dict):
if 'id' in d:
self.id = d['id']
@@ -85,6 +86,8 @@
self.cores = d['cores']
if 'version' in d:
self.version = d['version']
+ if 'notes' in d:
+ self.notes = d['notes']
def __str__(self):
return str(self.__dict__)