Closed macdonst closed 5 years ago
hi, i think the issue is that the parameters
field is an array i.e. [{key, value}, ...]
of key-value pairs, not a map from key to value?
@starpit Yeah, I updated the code above as that was a copy and paste from my trashing trying to figure out what I was doing wrong. I have the same issue if I push new object into the parameters array.
As well, if I run the example code directly from here: https://github.com/apache/incubator-openwhisk-client-js#update-package-parameters I still get the same issue.
you have tried ow.packages.update({ name, package})
? your example has ow.packages.update(pack)
which i think won't work.
Yeah, using ow.packages.update({ name, package})
has resolved the issue but I'm not sure why that would be different than ow.packages.update(pack)
where pack is an object that has a name and parameters properties.
yes, i agree that this API could be refined; it is not a reflexive API.
Okay, well I'm going to close this a user error :)
I'm attempting to update my package parameters while executing an action. Unfortunately, no matter what I try the parameters don't seem to be updated.
Here is some sample action code that illustrates the problem:
As well subsequent calls to this action do not show the updated
a
andb
parameters I've attempted to add.