From 0da3314271a7d3013c5817268f80a179e936c5ee Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Mon, 10 Mar 2008 19:58:43 -0400 Subject: Use Minions(glob).get_all_hosts() to fetch our minion list in funcweb --- funcweb/funcweb/controllers.py | 5 ++--- funcweb/funcweb/templates/minions.html | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'funcweb') diff --git a/funcweb/funcweb/controllers.py b/funcweb/funcweb/controllers.py index c08844f..eb2327f 100644 --- a/funcweb/funcweb/controllers.py +++ b/funcweb/funcweb/controllers.py @@ -2,7 +2,7 @@ import logging log = logging.getLogger(__name__) from turbogears import controllers, expose, flash, identity, redirect -from func.overlord.client import Client +from func.overlord.client import Client, Minions class Root(controllers.RootController): @@ -10,8 +10,7 @@ class Root(controllers.RootController): @identity.require(identity.not_anonymous()) def minions(self, glob='*'): """ Return a list of our minions that match a given glob """ - fc = Client(glob) - return dict(minions=fc.system.list_methods()) + return dict(minions=Minions(glob).get_all_hosts()) index = minions # start with our minion view, for now diff --git a/funcweb/funcweb/templates/minions.html b/funcweb/funcweb/templates/minions.html index f303a43..94ccbc1 100644 --- a/funcweb/funcweb/templates/minions.html +++ b/funcweb/funcweb/templates/minions.html @@ -9,7 +9,7 @@
-- cgit