[Cluster-devel] conga/luci/site/luci/Extensions ricci_bridge.py
jparsons at sourceware.org
jparsons at sourceware.org
Mon Jul 17 21:58:49 UTC 2006
CVSROOT: /cvs/cluster
Module name: conga
Changes by: jparsons at 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)
More information about the Cluster-devel
mailing list