[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/luci/site/luci/Extensions ricci_bridge.py



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	jparsons sourceware org	2006-07-17 21:58:49

Modified files:
	luci/site/luci/Extensions: ricci_bridge.py 

Log message:
	Fixes inability to rollover when searching for a working ricci agent in a cluster

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ricci_bridge.py.diff?cvsroot=cluster&r1=1.2&r2=1.3

--- conga/luci/site/luci/Extensions/ricci_bridge.py	2006/07/14 16:00:26	1.2
+++ conga/luci/site/luci/Extensions/ricci_bridge.py	2006/07/17 21:58:48	1.3
@@ -475,7 +475,10 @@
         
     def getRicciResponse(self):
       sock = socket(AF_INET, SOCK_STREAM)
-      sock.connect((self.__hostname, self.__port))
+      try:
+        sock.connect((self.__hostname, self.__port))
+      except:
+        return False
       ss = ssl(sock, PATH_TO_PRIVKEY, PATH_TO_CACERT)
       # receive ricci header
       hello = self.__receive(ss)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]