summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/func-transmit7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/func-transmit b/scripts/func-transmit
index 1a0e670..e43714f 100644
--- a/scripts/func-transmit
+++ b/scripts/func-transmit
@@ -41,6 +41,7 @@ import func.overlord.client as fc
input = sys.stdin.read()
params = yaml.load(input).next()
+
# scan arguments
clients = params.get('clients', "*")
@@ -60,12 +61,16 @@ else:
module = params.get('module','unknown')
parameters = params.get('parameters', None)
+
# make the call
client = fc.Overlord(clients, async=async, nforks=nforks)
module_handle = getattr(client, module)
method_handle = getattr(module_handle, method)
if parameters is not None:
- results = method_handle(parameters)
+ # listify if we get something thats not a list
+ if type(parameters) not in [type([]), type(())]:
+ parameters = [parameters]
+ results = method_handle(*parameters)
else:
results = method_handle()