commit f966b3934a8baa1b1589f980b027b4b193677ca3 Author: Ryan McCabe rmccabe@redhat.com Date: Sat Aug 20 14:31:55 2011 -0400
Fix transient traceback when displaying the cluster list
luci/lib/db_helpers.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) --- diff --git a/luci/lib/db_helpers.py b/luci/lib/db_helpers.py index a28f75e..680a211 100644 --- a/luci/lib/db_helpers.py +++ b/luci/lib/db_helpers.py @@ -190,6 +190,9 @@ def get_cluster_list_full(): cluster_list = {}
db_objs = get_cluster_list() + if not db_objs: + return cluster_list + for i in db_objs: cluster_name = i.name rc = get_agent_for_cluster(cluster_name)
luci-commits@lists.fedorahosted.org