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

additional activation get features #77

Closed
rabbah opened this issue Oct 31, 2019 · 2 comments
Closed

additional activation get features #77

rabbah opened this issue Oct 31, 2019 · 2 comments

Comments

@rabbah
Copy link

rabbah commented Oct 31, 2019

Expected Behaviour

These wsk flags are not available on > aio runtime:activation get --help.

> wsk activation get -h
get activation
Usage:
  wsk activation get (ACTIVATION_ID | --last) [FIELD_FILTER] [flags]

Flags:
  -l, --last      retrieves the last activation
  -g, --logs      emit only the logs, stripped of time stamps and stream identifier
  -s, --summary   summarize activation details

The ability to get the last activation or just its logs is quite handy.

Actual Behaviour

> aio runtime:activation get --last
 ›   Error: failed to retrieve the activation: GET https://.../api/v1/namespaces/_/activations/--last Returned 
 ›   HTTP 400 (Bad Request) --> "Activation id length is 6 but must be 32."

The flag --last is being treated as an activation name.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

> aio version
@adobe/aio-cli/2.1.1 darwin-x64 node-v10.16.3

Sample Code that illustrates the problem

Logs taken while reproducing problem

@rabbah
Copy link
Author

rabbah commented Oct 31, 2019

@rabbah
Copy link
Author

rabbah commented Oct 31, 2019

Opened corresponding issue and PR in the appropriate repo for this change.

@rabbah rabbah closed this as completed Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant