Fixed App SDK bug with Splunk app
This commit is contained in:
@@ -489,11 +489,16 @@ class AppBase:
|
|||||||
# FIXME - this is horrible, but works for now
|
# FIXME - this is horrible, but works for now
|
||||||
#for i in range(calltimes):
|
#for i in range(calltimes):
|
||||||
if not multiexecution:
|
if not multiexecution:
|
||||||
print("Params: %s" % params)
|
print("APP_SDK DONE: Starting normal execution of function")
|
||||||
print("RUNNING NORMAL EXECUTION")
|
newres = await func(**params)
|
||||||
result += await func(**params)
|
print("NEWRES: ", newres)
|
||||||
|
if isinstance(newres, str):
|
||||||
|
result += newres
|
||||||
|
else:
|
||||||
|
print("Can't handle type %s value from function" % (type(newres)))
|
||||||
|
result += "Can't handle %s type from function" % type(newres)
|
||||||
else:
|
else:
|
||||||
print("MULTI EXECUTION: ", multi_parameters)
|
print("APP_SDK DONE: Starting multi execution with", multi_parameters)
|
||||||
# 1. Use number of executions based on longest array
|
# 1. Use number of executions based on longest array
|
||||||
# 2. Find the right value from the parsed multi_params
|
# 2. Find the right value from the parsed multi_params
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user