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: avoid errors with unexpected JSON input #4091

Merged
merged 1 commit into from Sep 28, 2023

Conversation

afbjorklund
Copy link
Contributor

If either Names or Labels of a container was empty (null), then there would just be a black screen and an error log.

What does this PR do?

Ran into some docker compatibility errors / parsing assumptions, when dealing with showing containerd containers.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

How to test this PR?

@afbjorklund afbjorklund requested review from benoitf and a team as code owners September 25, 2023 21:46
@afbjorklund afbjorklund requested review from dgolovin and cdrage and removed request for a team September 25, 2023 21:46
If either Names or Labels of a container was undefined (null),
then there would just be a black screen and an error log...

The docker client library converts any such null values into
empty string (""), so that is what is being used in the test.

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
@benoitf benoitf enabled auto-merge (rebase) September 28, 2023 13:31
@benoitf benoitf merged commit 4ac3dc0 into containers:main Sep 28, 2023
8 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.5.0 milestone Sep 28, 2023
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