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

vdk-control-cli: Adopt new auth exceptions #846

Merged
merged 1 commit into from
May 30, 2022
Merged

Conversation

doks5
Copy link
Contributor

@doks5 doks5 commented May 30, 2022

After the introduction of new exception types in the
vdk-control-api-auth plugin, more granular exception handling
is now possible.

This change adopts the new exception types in vdk-control-cli,
and removes unnecessary error message parsing.

Additionally, the exit status code when authentication failes was
changed from 0 to 1 to better reflect the fact that something unexpected
has happened.

Testing Done: Unit tests

Signed-off-by: Andon Andonov [email protected]

@doks5 doks5 force-pushed the person/andonova/vdk-auth branch from 3bdfa38 to 04120dd Compare May 30, 2022 07:28
After the introduction of new exception types in the
`vdk-control-api-auth` plugin, more granular exception handling
is now possible.

This change adopts the new exception types in `vdk-control-cli`,
and removes unnecessary error message parsing.

Additionally, the exit status code when authentication failes was
changed from 0 to 1 to better reflect the fact that something unexpected
has happened.

Testing Done: Unit tests

Signed-off-by: Andon Andonov <[email protected]>
@doks5 doks5 force-pushed the person/andonova/vdk-auth branch from 04120dd to 65e77ae Compare May 30, 2022 07:39
@doks5 doks5 merged commit 415f9a1 into main May 30, 2022
@doks5 doks5 deleted the person/andonova/vdk-auth branch May 30, 2022 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants