summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2008-01-17 21:54:44 -0500
committerLuke Macken <lmacken@redhat.com>2008-01-17 21:54:44 -0500
commit696c8cad018e4277c6241585019d2eadb5d1bb09 (patch)
tree558023c1490062e70454a4b0531f950e50813841
parent7f5adbd3a3ebd8038940b2acaeccaa66a100caa1 (diff)
downloadfunc-696c8cad018e4277c6241585019d2eadb5d1bb09.tar.gz
func-696c8cad018e4277c6241585019d2eadb5d1bb09.tar.xz
func-696c8cad018e4277c6241585019d2eadb5d1bb09.zip
No need to check for arguments in the funcweb.run method
-rw-r--r--funcweb/funcweb/controllers.py5
1 files changed, 1 insertions, 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)