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

Show an error when project is not supplied #247

Merged
merged 1 commit into from
Jan 11, 2022
Merged

Conversation

rominf
Copy link
Contributor

@rominf rominf commented Dec 23, 2021

About this change: What it does, why it matters

Fix #246

The result of get_project is None if user didn't login, and specifies --auth-token. Check and raise an exception.

@rominf rominf changed the title Fix #246 Show an error when project is not supplied Dec 23, 2021
aiven/client/cli.py Show resolved Hide resolved
@rominf rominf force-pushed the rominf-fix-246 branch 2 times, most recently from 7594a11 to fed6425 Compare December 27, 2021 08:58
@rominf rominf requested a review from akudiyar December 27, 2021 09:06
@rominf rominf force-pushed the rominf-fix-246 branch 3 times, most recently from f108ada to 18baf68 Compare December 27, 2021 09:58
Fix #246

The result of `get_project` is `None` if user didn't login, and
specifies `--auth-token`. Check and raise an exception.
@akudiyar
Copy link
Contributor

I approve these changes, although I suggest starting to make more functional tests for the client CLI, like it is done for admin CLI, for example.

@rominf rominf requested a review from a team January 11, 2022 13:28
@mhoffm-aiven mhoffm-aiven merged commit 3e8390b into master Jan 11, 2022
@mhoffm-aiven mhoffm-aiven deleted the rominf-fix-246 branch January 11, 2022 14:32
rominf pushed a commit that referenced this pull request Jan 17, 2022
#247 introduced a bug: an
error about a missing project was raised even if the project was
optional.
This change fixes this by splitting get_project to get_non_none_project
and get_project.
rominf pushed a commit that referenced this pull request Jan 17, 2022
#247 introduced a bug: an
error about a missing project was raised even if the project was
optional.
This change fixes this by splitting get_project to get_non_none_project
and get_project.
rominf pushed a commit that referenced this pull request Jan 17, 2022
#247 introduced a bug: an
error about a missing project was raised even if the project was
optional.
This change fixes this by splitting get_project to get_non_none_project
and get_project.
rominf pushed a commit that referenced this pull request Jan 17, 2022
#247 introduced a bug: an
error about a missing project was raised even if the project was
optional.
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

Successfully merging this pull request may close these issues.

Error quote_from_bytes()
3 participants