mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-20 09:21:24 -07:00
* Update postgresql_pg_hba.py
Fixes #1108
* Create changelog fragment for pull 1124
* Adding a unit test for pg_hba
(cherry picked from commit 3a5669991f
)
Co-authored-by: Sebastiaan Mannem <sebastiaan.mannem@enterprisedb.com>
This commit is contained in:
parent
b035084caa
commit
d0a9ced474
3 changed files with 17 additions and 1 deletions
|
@ -335,7 +335,7 @@ class PgHba(object):
|
|||
ekeys = set(list(oldrule.keys()) + list(rule.keys()))
|
||||
ekeys.remove('line')
|
||||
for k in ekeys:
|
||||
if oldrule[k] != rule[k]:
|
||||
if oldrule.get(k) != rule.get(k):
|
||||
raise PgHbaRuleChanged('{0} changes {1}'.format(rule, oldrule))
|
||||
except PgHbaRuleChanged:
|
||||
self.rules[key] = rule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue