summaryrefslogtreecommitdiffstats
path: root/funcweb/funcweb/controllers.py
diff options
context:
space:
mode:
Diffstat (limited to 'funcweb/funcweb/controllers.py')
-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)