-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
cmdmod.py: Don't reset output vars inside loop #62903
Conversation
The stdout and stderr variables are used to collect the output of the command. These should not be reset inside the loop, because then the output that was already collected gets lost. Fixes: 60365
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this change. This will require a changelog and test coverage.
Can you please label this as |
Congratulations on your first PR being merged! 🎉 |
The stdout and stderr variables are used to collect the output of the command. These should not be reset inside the loop, because then the output that was already collected gets lost.
This problem was likely introduced by c7d2756, which seems to be a purely formatting commit.
Fixes: #60365