Describe the bug
Create a trigger, and connect it to an echo action, then fire the trigger:
./bin/run rt:trigger:fire mytrigger --param name test
The echo action receives:
{
"parameters": [
{
"key": "name",
"value": "test"
}
]
}
Retry with the wsk CLI and you get { "name": "test" }
To Reproduce
Steps to reproduce the behavior:
- Create trigger
mytrigger, an echo action and a rule connecting the two
- Activate the trigger as show above
- Inspect the activation result for the
echo action
Expected behavior
The parameters are sent as a JSON dictionary {"name":"test"} matching the wsk CLI.
Here is a potential patch to correct the issue https://github.com/adobe/aio-cli-plugin-runtime/compare/master...rabbah:trigger?expand=1.