fix attempt to alter immutable DEFAULT_MASTER_OPTS - #58394
Conversation
Dict salt.config.DEFAULT_MASTER_OPTS is a frozen immutable so the attempt to update it with "conf_path/master" causes an exception. This PR makes a copy and updates the copy.
|
@hwhesselink thank you for contribution! Could you please run |
|
Hi @krionbsd, a couple of questions: I'm not familiar with Jenkins but I installed pre-commit and ran "pre-commit run -av" in the cicd/jenkins directory and the 1-line diff is now +/- 200,000 lines so I suspect I'm not doing it right:-) How am I supposed to do this? Also, the error seems timing-related, I suspect the code in question only gets called when the new minion is slow, so I have no idea how to write a test for that. |
|
Hi @krionbsd, any update on this? |
|
This problem appears to cause and I cannot find a workaround to be able to use |
|
Sorry, I see. It is just |
|
@ari Are you willing to write a regression test for this? If so, we can get it into the next release. |
|
I'm not the right person to work on this. My contribution here was nothing more than a suggestion to just remove the entire sync_after_install feature since its been broken for a couple of years, and no one seems to care too much. Just document the way to do this with the reactor. |
|
Closing this due to inactivity. Anyone should feel free to re-open it if they want to see it through to the end in one release cycle. |
Dict salt.config.DEFAULT_MASTER_OPTS is a frozen immutable so the attempt to update it with "conf_path/master" causes an exception. This PR makes a copy and updates the copy.
What does this PR do?
What issues does this PR fix or reference?
Fixes:
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes/No
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.