-
Notifications
You must be signed in to change notification settings - Fork 92
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
postgresql_pg_hba: fix false "changed" when called with "overwrite: true" #378
postgresql_pg_hba: fix false "changed" when called with "overwrite: true" #378
Conversation
This is ready for review. A backport should not be needed as this only affects the |
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.
@betanummeric is it possible to cover the case with integration tests? If it's tricky, no problem
It should be fairly easy to add a test, I can do it tomorrow. |
…ain with the same arguments (having overwrite=true)
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.
LGTM
@nlvw thanks for reporting the issue!
@hunleyd thanks for reviewing!
@betanummeric thanks for fixing this! I think you can merge the PR yourself as there are approvals (choose "Squash and Merge", not the other options)
postgresql_pg_hba bugfix
fixes #376
pg_hba.conf
, trim whitespace between the rule and comment in the same line, to ensure equality tests work.overwrite
was enabled, the rule list was emptied and adding rules again counted as change.