incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1230252 - in /incubator/tashi/trunk/src/tashi: clustermanager/clustermanagerservice.py nodemanager/nodemanagerservice.py
Date Wed, 11 Jan 2012 21:09:57 GMT
Author: stroucki
Date: Wed Jan 11 21:09:56 2012
New Revision: 1230252

URL: http://svn.apache.org/viewvc?rev=1230252&view=rev
Log:
nodemanagerservice: Force port to be int
clustermanagerservice: Force port to be int

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

Modified: incubator/tashi/trunk/src/tashi/clustermanager/clustermanagerservice.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/clustermanager/clustermanagerservice.py?rev=1230252&r1=1230251&r2=1230252&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/clustermanager/clustermanagerservice.py (original)
+++ incubator/tashi/trunk/src/tashi/clustermanager/clustermanagerservice.py Wed Jan 11 21:09:56
2012
@@ -55,7 +55,7 @@ class ClusterManagerService(object):
 		self.accountingPort = None
 		try:
 			self.accountingHost = self.config.get('ClusterManagerService', 'accountingHost')
-			self.accountingPort = self.config.get('ClusterManagerService', 'accountingPort')
+			self.accountingPort = self.config.getint('ClusterManagerService', 'accountingPort')
 		except:
 			pass
 
@@ -71,7 +71,6 @@ class ClusterManagerService(object):
 		try:
 			if (self.accountingHost is not None) and \
 				    (self.accountingPort is not None):
-
 				self.accountingClient=rpycservices.client(self.accountingHost, self.accountingPort)
 		except:
 			self.log.exception("Could not init accounting")

Modified: incubator/tashi/trunk/src/tashi/nodemanager/nodemanagerservice.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/nodemanager/nodemanagerservice.py?rev=1230252&r1=1230251&r2=1230252&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/nodemanager/nodemanagerservice.py (original)
+++ incubator/tashi/trunk/src/tashi/nodemanager/nodemanagerservice.py Wed Jan 11 21:09:56
2012
@@ -60,7 +60,7 @@ class NodeManagerService(object):
 		self.accountingPort = None
 		try:
 			self.accountingHost = self.config.get('NodeManagerService', 'accountingHost')
-			self.accountingPort = self.config.get('NodeManagerService', 'accountingPort')
+			self.accountingPort = self.config.getint('NodeManagerService', 'accountingPort')
 		except:
 			pass
 



Mime
View raw message