-
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
Updated the bins_dir to default to pg_bin #37946
Conversation
Can you deprecate this using the warn_until function https://docs.saltstack.com/en/latest/topics/development/deprecations.html |
@gtmanfred Yeah no worries. What version should I put in? |
I would say Oxygen. |
Thank for this, |
Hi @ticosax yeah, I'll do that now. I'll close this PR. |
You don't have to close it. click on EDIT button and change the base branch. |
Ahh yeah, I've not used this in Github before yet :P |
Doens't seem to work like I expected. Sorry. I'm afraid you will have to submit a new patch. |
The config looking for initdb wasn't consistent with documentation so this updates that. It might be best to add a default but I need to look into the code a bit more first.
c53e4d7
to
a041b9f
Compare
Realised I missed off the initdb check so I've restored it as before.
@ticosax There we go, I've gotten rid of the extraneous commits from |
What does this PR do?
Updates the configuration to match the documentation. Originally the docs said
postgres.pg_bin
was the config to update, however the code looks atpostgres.bins_dir
. This PR supports both behaviours so we can transition users who need an immediate fix away from the original workaround.I've also updated the documentation so we can be clear that the behavior is unsupported but is necessary in certain situations.
What issues does this PR fix or reference?
#37935
Previous Behavior
The system only looked in
postgres.bins_dir
in the configuration. The docs said to updatepostgres.pg_bin
New Behavior
The system defaults to look at
postgres.pg_bin
first, then falls back topostgres.bins_dir
to prevent workarounds failing.Tests written?
No