summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/database/postgresql/postgresql_pg_hba.py
diff options
context:
space:
mode:
authorAndrew Klychkov <aaklychkov@mail.ru>2020-02-06 18:05:42 +0300
committerGitHub <noreply@github.com>2020-02-06 16:05:42 +0100
commit637eed5a5c3cff7e7d71faadc5de6e591e32d1d0 (patch)
tree845e10bfa8fa8c203e8461494dab4d2badade764 /lib/ansible/modules/database/postgresql/postgresql_pg_hba.py
parenta5b5101e09a0b7617d697f493eb25630c73bf4e0 (diff)
downloadansible-637eed5a5c3cff7e7d71faadc5de6e591e32d1d0.tar.gz
postgresql modules: fix sanity issues (#67046)
* postgresql modules: fix sanity issues * add changelog * fix changelog
Diffstat (limited to 'lib/ansible/modules/database/postgresql/postgresql_pg_hba.py')
-rw-r--r--lib/ansible/modules/database/postgresql/postgresql_pg_hba.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ansible/modules/database/postgresql/postgresql_pg_hba.py b/lib/ansible/modules/database/postgresql/postgresql_pg_hba.py
index aa410992bf..acfaa567e9 100644
--- a/lib/ansible/modules/database/postgresql/postgresql_pg_hba.py
+++ b/lib/ansible/modules/database/postgresql/postgresql_pg_hba.py
@@ -86,16 +86,19 @@ options:
s=source, d=databases, u=users.
This option is deprecated since 2.9 and will be removed in 2.11.
Sortorder is now hardcoded to sdu.
+ type: str
default: sdu
choices: [ sdu, sud, dsu, dus, usd, uds ]
state:
description:
- The lines will be added/modified when C(state=present) and removed when C(state=absent).
+ type: str
default: present
choices: [ absent, present ]
users:
description:
- Users this line applies to.
+ type: str
default: all
notes:
@@ -737,7 +740,7 @@ def main():
if pg_hba.last_backup:
ret['backup_file'] = pg_hba.last_backup
- ret['pg_hba'] = [rule for rule in pg_hba.get_rules()]
+ ret['pg_hba'] = list(pg_hba.get_rules())
module.exit_json(**ret)