summaryrefslogtreecommitdiffstats
path: root/scripts/func-transmit
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-07-07 12:26:12 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-07-07 12:26:12 -0400
commitc4ef4b4e92dfcf2851fddecc163c734809d191e9 (patch)
tree8d725529c1a23e752a88e080cfe3c9f3228bb69f /scripts/func-transmit
parentc5fe79892ad83e2a89b81738b93e1fb0fd4b2ebf (diff)
downloadfunc-c4ef4b4e92dfcf2851fddecc163c734809d191e9.tar.gz
func-c4ef4b4e92dfcf2851fddecc163c734809d191e9.tar.xz
func-c4ef4b4e92dfcf2851fddecc163c734809d191e9.zip
Allow calling with no parameters
Diffstat (limited to 'scripts/func-transmit')
-rw-r--r--scripts/func-transmit5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/func-transmit b/scripts/func-transmit
index 163a99c..e9da45e 100644
--- a/scripts/func-transmit
+++ b/scripts/func-transmit
@@ -53,7 +53,10 @@ parameters = params.get('parameters', [])
client = fc.Overlord(clients, async=async, nforks=nforks)
module_handle = getattr(client, module)
method_handle = getattr(module_handle, method)
-results = method_handle(parameters)
+if parameters is not None:
+ results = method_handle(parameters)
+else:
+ results = method_handle()
output = yaml.dump(results)
# write to stdout