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

[3006.x] Fix stdin raw newlines for timed subprocess #66840

Merged

Conversation

niklasr22
Copy link

What does this PR do?

What issues does this PR fix or reference?

Fixes issue #62501

Previous Behavior

The following error was thrown when running cmd.run with a str passed via stdin and stdin_raw_newlines=True

Passed invalid arguments to cmd.run: memoryview: a bytes-like object is required, not 'str'

New Behavior

String also gets converted to bytes when stdin_raw_newlines=True, so no error is thrown

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices, including the
PR Guidelines.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@niklasr22 niklasr22 requested a review from a team as a code owner August 26, 2024 20:31
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Fix stdin raw newlines for timed subprocess [3006.x] Fix stdin raw newlines for timed subprocess Aug 26, 2024
Copy link

welcome bot commented Sep 18, 2024

Congratulations on your first PR being merged! 🎉

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.

3 participants