-
Notifications
You must be signed in to change notification settings - Fork 53
Closed
Milestone
Description
The intuitive way of adding annotation to a sequence is this:
openwhisk.actions.update({
annotations: { "web-export": true, "raw-http": false },
name: "mysequence",
action: { exec: { kind: "sequence", components: ["/myuser/someaction"] } }
});but the implementation of the client currently assumes that passing an options.action object means that the developer intends to build the whole request body themselves, which means the required call would be:
openwhisk.actions.update({
name: "mysequence",
action: {
namespace: "myuser",
name: "mysequence",
exec: {
kind: "sequence",
components: ["/myuser/someaction"]
},
annotations: [
{
key: "exec",
value: "sequence"
},
{
key: "web-export",
value: true
},
{
key: "raw-http",
value: false
},
{
key: "final",
value: true
}
]
}
});While this might not be strictly a bug, it is clearly inconvenient and hard to get right without some assistance from @jthomas.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels