Skip to content

Commit

Permalink
postgresql_privs: fix breaking changes related to password argument (#…
Browse files Browse the repository at this point in the history
…463)

* postgresql_privs: fix breaking changes related to password argument

* Add fragment

(cherry picked from commit 599754e)
  • Loading branch information
Andersson007 authored and patchback[bot] committed May 5, 2023
1 parent e66b193 commit 7372f4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/0-postgresql_privs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- postgresql_privs - fix a breaking change related to handling the ``password`` argument (https://github.com/ansible-collections/community.postgresql/pull/463).
2 changes: 1 addition & 1 deletion plugins/modules/postgresql_privs.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def __init__(self, params, module):
"ca_cert": "sslrootcert"
}

conn_params = get_conn_params(module, module.params, warn_db_default=False)
conn_params = get_conn_params(module, params.__dict__, warn_db_default=False)

sslrootcert = params.ca_cert
if psycopg2.__version__ < '2.4.3' and sslrootcert is not None:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/postgresql_user/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# and should not be used as examples of how to write Ansible roles #
####################################################################

# Initial CI tests of postgresql_user module
# Initial CI tests of postgresql_user module:
- import_tasks: postgresql_user_initial.yml
when: postgres_version_resp.stdout is version('9.4', '>=')

Expand Down

0 comments on commit 7372f4a

Please sign in to comment.