Skip to content

Commit

Permalink
Update postgresql_pg_hba.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasmannem authored and Sebastiaan Mannem committed Oct 21, 2020
1 parent b2e075e commit 4bbb587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/database/postgresql/postgresql_pg_hba.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def add_rule(self, rule):
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
Expand Down

0 comments on commit 4bbb587

Please sign in to comment.