add kwargs to be passed from grains.setval to saltutil.refresh_grains#56020
add kwargs to be passed from grains.setval to saltutil.refresh_grains#56020jtraub91 wants to merge 1 commit intosaltstack:masterfrom jtraub91:set_val_refresh_pillar_fix
Conversation
|
How a user (who is not familiar with the code) is supposed to discover that it is possible to pass |
|
This does not need test case since its a bug fix not a new feature request. As for user discovery of possible |
(Un)fortunately that statement is incorrect. Tests are required for bug fixes to prevent regressions. If we can't reproduce a problem with a test case, it's likely that we haven't fully understood the problem. Adding tests that exhibit the existing problem will at least notify us if we re-introduce that problem in the future. |
|
The "problem" that's occurring is that pillar is refreshed when setting grains with |
|
talking to @Ch3LL if this is intended https://github.com/saltstack/salt/blob/master/salt/modules/saltutil.py#L383-L385 and the better fix would be to add refresh_pillar as a specific kwarg, and yes as @waynew stated please add a test |
|
@jtraub91 are you able to follow up the suggestions? |
|
@jtraub91 please let me know if I can help here. |
|
@DmitryKuzmenko I can re-implement this by specifying |
|
@jtraub91 yes please if possible. |
|
@DmitryKuzmenko Ok. Will do. |
|
Thank you! |
|
Changes have been pushed. Not sure why it's saying "unknown repository" above, so I opened a new PR to resolve this. Further discussion should ensure there (#56573) and this PR can be closed. |
|
@jtraub91 am I right we can close this now? |
|
@DmitryKuzmenko Yes and let's make sure we get #56573 merged. |
|
I will. |
What does this PR do?
Allows kwargs to be passed thru to grains.setval
What issues does this PR fix or reference?
This allows the user to specify refresh_pillar=False