conga/luci/cluster form-macros
CVSROOT: /cvs/cluster
Module name: conga
Changes by: jparsons at sourceware.org 2006-09-22 20:08:40
Modified files:
luci/cluster : form-macros
Log message:
Fixed evil ignoring of a return code
luci/cluster/form-macros +8 -2
@@ -27,9 +27,14 @@ <div metal:define-macro="clusters-form"> <div id="cluster_list"> <div class="cluster" tal:repeat="clu clusystems"> + <tal:define="global ragent python: here.getRicciAgent(clu) | nothing/> + <span tal:condition="not ragent"> + <h4><font color="red">An error occurred when trying to contact any of the nodes in the <span tal:content="clu"/>.</font></h4> + <hr/> + </span> + <span tal:condition="ragent"> <tal:block - tal:define="ragent python: here.getRicciAgent(clu); - global stat python: here.getClusterStatus(ragent); + tal:define="global stat python: here.getClusterStatus(ragent); global cstatus python: here.getClustersInfo(stat,request); global cluster_status python: 'cluster ' + (('running' in cstatus and cstatus['running'] == 'true') and 'running' or 'stopped');" />
@@ -111,6 +116,7 @@ </tr> </table> <hr> + </span> </div> </div> </div>