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: add check before writing to terminal #3263

Merged
merged 2 commits into from Jul 19, 2023

Conversation

lstocchi
Copy link
Contributor

What does this PR do?

This PR makes the writeToTerminal more robust by filtering invalid values and managing arrays of arrays (i don't have the error i faced but it happened when working with logs).
The behavior should be like before as if it receive a valid array of string nothing changes

Screenshot/screencast of this PR

N/A

What issues does this PR fix or reference?

it is part of the splitting of #1923

How to test this PR?

  1. start a podman machine and check that the logs are printed as before

Signed-off-by: lstocchi <lstocchi@redhat.com>
@lstocchi lstocchi requested review from a team and benoitf as code owners July 19, 2023 10:39
@lstocchi lstocchi requested review from jeffmaury and cdrage and removed request for a team July 19, 2023 10:39
Copy link
Collaborator

@benoitf benoitf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably miss a test of multiline string

Signed-off-by: lstocchi <lstocchi@redhat.com>
@lstocchi lstocchi requested a review from benoitf July 19, 2023 12:32
@lstocchi lstocchi merged commit 3088460 into containers:main Jul 19, 2023
8 checks passed
@lstocchi lstocchi deleted the writeToTerminal branch July 19, 2023 12:57
@podman-desktop-bot podman-desktop-bot added this to the 1.3.0 milestone Jul 19, 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