Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating an sequence without an actual sequence fails in a surprising way #2121

Closed
rabbah opened this issue Apr 8, 2017 · 3 comments
Closed

Comments

@rabbah
Copy link
Member

rabbah commented Apr 8, 2017

wsk action create a --docker a
wsk action create b --docker b
wsk action create s a,b --sequence
wsk action update s --sequence

The CLI accepts the update with no artifact present and constructs the following incorrect request to post to the API:

{{"namespace":"_","name":"s","exec":{"kind":"sequence","components":["/_/"]}}

The controller will reject this because the component has an invalid action name.

requirement failed: The fully qualified name of the entity must contain at least the namespace and the name of the entity.
@rabbah rabbah changed the title updating an sequence updating an sequence without an actual sequence fails in a surprising way Apr 8, 2017
@dubee
Copy link
Member

dubee commented Jul 14, 2017

@rabbah, is this issue still valid? Here's the output I get with the current CLI:

$ wsk action create a --docker a
ok: created action a
$ wsk action create b --docker b
ok: created action b
$ wsk action create s a,b --sequence
ok: created action s
$ wsk action update s --sequence
error: Invalid argument(s). An action name and code artifact are required.
Run 'wsk --help' for usage.

@rabbah
Copy link
Member Author

rabbah commented Jul 14, 2017

that's better.

@csantanapr
Copy link
Member

Issue moved to apache/incubator-openwhisk-cli #138 via ZenHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants