Skip to contentSkip to conversation

conga/luci/site/luci/Extensions cluster_adapte ...

Cluster-devel [email protected] 1 participant 1 message Oct 12, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: jparsons at sourceware.org 2006-10-12 17:08:25

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

Log message:
Trap connect failure

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

luci/site/luci/Extensions/cluster_adapters.py +8 -1
@@ -2358,8 +2358,15 @@
     map['os'] = ""
     map['isVirtualized'] = False
     return map
+  
+  try:
+    rc = RicciCommunicator(ricci_agent)
+  except:
+    map = {}
+    map['os'] = ""
+    map['isVirtualized'] = False
+    return map
 
-  rc = RicciCommunicator(ricci_agent)
   map = {}
   os_str = resolveOSType(rc.os())
   map['os'] = os_str