openwhisk-cli icon indicating copy to clipboard operation
openwhisk-cli copied to clipboard

wsk trigger update on a feed trigger calls the feed action again

Open rabbah opened this issue 7 years ago • 2 comments

is this intended new behavior?

 wsk trigger create f --feed /whisk.system/utils/echo

i create a trigger with a bogus feed (need to fix #134 seeing the activation result of the feed is annoying enough i might just fix it :)

then wsk trigger update f and wsk trigger get f both call the feed - it's not clear in the first that my trigger was updates, for example to add a parameter that i specified. Further, on the get, I don't see my trigger either.

OK granted this is pathological I called an action as the feed that isn't a feed - but is this the intended behavior especially for the get?

rabbah avatar Feb 21 '18 05:02 rabbah

OK from inspecting the CLI code, an update and get are routed to the feed - not the openwhisk API host. That explains the observed results.

rabbah avatar Feb 21 '18 05:02 rabbah

see also https://github.com/apache/incubator-openwhisk/pull/3318 for a related CLI change to wsk trigger update to now take the --feed parameter.

mdeuser avatar Feb 28 '18 18:02 mdeuser