From 696c8cad018e4277c6241585019d2eadb5d1bb09 Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Thu, 17 Jan 2008 21:54:44 -0500 Subject: No need to check for arguments in the funcweb.run method --- funcweb/funcweb/controllers.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/funcweb/funcweb/controllers.py b/funcweb/funcweb/controllers.py index c864093..1ffdef6 100644 --- a/funcweb/funcweb/controllers.py +++ b/funcweb/funcweb/controllers.py @@ -39,9 +39,6 @@ class Root(controllers.RootController): @expose(template="funcweb.templates.run") def run(self, minion="*", module=None, method=None, arguments=None): fc = Client(minion) - if arguments: - results = getattr(getattr(fc, module), method)(*arguments.split()) - else: - results = getattr(getattr(fc, module), method)() + results = getattr(getattr(fc, module), method)(*arguments.split()) cmd = "%s.%s.%s(%s)" % (minion, module, method, arguments) return dict(cmd=cmd, results=results) -- cgit