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

fix: check if auth.json file exists before reading #377

Merged
merged 1 commit into from Aug 5, 2022
Merged

Conversation

vzhukovs
Copy link
Contributor

@vzhukovs vzhukovs commented Aug 5, 2022

What does this PR do?

The following changes proposal adds an additional check for auth.json file before reading.

Signed-off-by: Vladyslav Zhukovskyi vzhukovs@redhat.com

How to test this PR?

Having a fresh installation of podman and ensure, that auth.json is not existing try to add a new registry. Podman Desktop should not throw an exception, that it is not possible to read non-existent file.

@vzhukovs vzhukovs requested a review from benoitf as a code owner August 5, 2022 12:19
@vzhukovs vzhukovs self-assigned this Aug 5, 2022
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@vzhukovs vzhukovs merged commit f017f2d into main Aug 5, 2022
@vzhukovs vzhukovs deleted the check_auth_file branch August 5, 2022 13:17
@podman-desktop-bot podman-desktop-bot added this to the 0.0.6 milestone Aug 5, 2022
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.

None yet

3 participants