From mboxrd@z Thu Jan 1 00:00:00 1970 From: jparsons@sourceware.org Date: 17 Jul 2006 21:58:49 -0000 Subject: [Cluster-devel] conga/luci/site/luci/Extensions ricci_bridge.py Message-ID: <20060717215849.29183.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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)