From e4d9a5185d8994d35d8c47c9a44821c1ebedc6f4 Mon Sep 17 00:00:00 2001 From: Andrey Klychkov Date: Mon, 15 Apr 2019 12:56:25 +0300 Subject: [PATCH] postgresql_slot - sslrootcert fix (#55277) (cherry picked from commit 41909859959c8bbe3988737ea0a23952459f74e3) --- changelogs/fragments/postgresql_slot-fix-sslrootcert.yml | 2 ++ lib/ansible/modules/database/postgresql/postgresql_slot.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/postgresql_slot-fix-sslrootcert.yml diff --git a/changelogs/fragments/postgresql_slot-fix-sslrootcert.yml b/changelogs/fragments/postgresql_slot-fix-sslrootcert.yml new file mode 100644 index 00000000000..868a7d081fc --- /dev/null +++ b/changelogs/fragments/postgresql_slot-fix-sslrootcert.yml @@ -0,0 +1,2 @@ +bugfixes: + - postgresql_slot - fixed sslrootcert mapping to psycopg2 connection string diff --git a/lib/ansible/modules/database/postgresql/postgresql_slot.py b/lib/ansible/modules/database/postgresql/postgresql_slot.py index ec306991c56..de08337731f 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_slot.py +++ b/lib/ansible/modules/database/postgresql/postgresql_slot.py @@ -340,7 +340,7 @@ def main(): "login_password": "password", "port": "port", "sslmode": "ssl_mode", - "ca_cert": "ssl_rootcert" + "ca_cert": "sslrootcert" } kw = dict((params_map[k], v) for (k, v) in module.params.items() if k in params_map and v != '')