Support for list args type in requests
This commit is contained in:
parent
77530b4a06
commit
8a7f783032
1 changed files with 6 additions and 1 deletions
|
@ -225,7 +225,12 @@ class Request(Message):
|
||||||
# Run the action
|
# Run the action
|
||||||
args = self._expand_context(**context)
|
args = self._expand_context(**context)
|
||||||
args = self.expand_value_from_context(args, **context)
|
args = self.expand_value_from_context(args, **context)
|
||||||
response = plugin.run(method=method_name, **args)
|
if isinstance(args, dict):
|
||||||
|
response = plugin.run(method_name, **args)
|
||||||
|
elif isinstance(args, list):
|
||||||
|
response = plugin.run(method_name, *args)
|
||||||
|
else:
|
||||||
|
response = plugin.run(method_name, args)
|
||||||
|
|
||||||
if not response:
|
if not response:
|
||||||
logger.warning('Received null response from action {}'.format(action))
|
logger.warning('Received null response from action {}'.format(action))
|
||||||
|
|
Loading…
Reference in a new issue