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/01/11 01:35:23 UTC

svn commit: r1229851 - in /incubator/tashi/branches/stroucki-accounting/src/tashi: clustermanager/clustermanagerservice.py nodemanager/nodemanagerservice.py

Author: stroucki
Date: Wed Jan 11 01:35:23 2012
New Revision: 1229851

URL: http://svn.apache.org/viewvc?rev=1229851&view=rev
Log:
nodemanagerservice: Ignore lack of accounting service info
clustermanagerservice: Ignore lack of accounting service info

Modified:
    incubator/tashi/branches/stroucki-accounting/src/tashi/clustermanager/clustermanagerservice.py
    incubator/tashi/branches/stroucki-accounting/src/tashi/nodemanager/nodemanagerservice.py

Modified: incubator/tashi/branches/stroucki-accounting/src/tashi/clustermanager/clustermanagerservice.py
URL: http://svn.apache.org/viewvc/incubator/tashi/branches/stroucki-accounting/src/tashi/clustermanager/clustermanagerservice.py?rev=1229851&r1=1229850&r2=1229851&view=diff
==============================================================================
--- incubator/tashi/branches/stroucki-accounting/src/tashi/clustermanager/clustermanagerservice.py (original)
+++ incubator/tashi/branches/stroucki-accounting/src/tashi/clustermanager/clustermanagerservice.py Wed Jan 11 01:35:23 2012
@@ -54,8 +54,13 @@ class ClusterManagerService(object):
 		self.maxCores = int(self.config.get('ClusterManagerService', 'maxCores'))
 		self.allowDuplicateNames = boolean(self.config.get('ClusterManagerService', 'allowDuplicateNames'))
 
-		self.accountingHost = self.config.get('ClusterManagerService', 'accountingHost')
-		self.accountingPort = self.config.get('ClusterManagerService', 'accountingPort')
+		self.accountingHost = None
+		self.accountingPort = None
+		try:
+			self.accountingHost = self.config.get('ClusterManagerService', 'accountingHost')
+			self.accountingPort = self.config.get('ClusterManagerService', 'accountingPort')
+		except:
+			pass
 
 		self.__initAccounting()
 		self.__initCluster()

Modified: incubator/tashi/branches/stroucki-accounting/src/tashi/nodemanager/nodemanagerservice.py
URL: http://svn.apache.org/viewvc/incubator/tashi/branches/stroucki-accounting/src/tashi/nodemanager/nodemanagerservice.py?rev=1229851&r1=1229850&r2=1229851&view=diff
==============================================================================
--- incubator/tashi/branches/stroucki-accounting/src/tashi/nodemanager/nodemanagerservice.py (original)
+++ incubator/tashi/branches/stroucki-accounting/src/tashi/nodemanager/nodemanagerservice.py Wed Jan 11 01:35:23 2012
@@ -60,8 +60,14 @@ class NodeManagerService(object):
 			self.log.exception("Could not connect to CM")
 			return
 
-		self.accountingHost = self.config.get('NodeManagerService', 'accountingHost')
-		self.accountingPort = self.config.get('NodeManagerService', 'accountingPort')
+		self.accountingHost = None
+		self.accountingPort = None
+		try:
+			self.accountingHost = self.config.get('NodeManagerService', 'accountingHost')
+			self.accountingPort = self.config.get('NodeManagerService', 'accountingPort')
+		except:
+			pass
+
 		self.notifyCM = []
 
 		self.__initAccounting()