From 3c24d1c03c4c11d76b5202cd25dd0e6b8dfd724a Mon Sep 17 00:00:00 2001 From: Andrew Klychkov Date: Wed, 15 Apr 2020 08:16:16 +0300 Subject: [PATCH] postgresql_user: add session_role parameter to check (#179) --- plugins/modules/database/postgresql/postgresql_user.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/modules/database/postgresql/postgresql_user.py b/plugins/modules/database/postgresql/postgresql_user.py index 0d3d512b60..5065452223 100644 --- a/plugins/modules/database/postgresql/postgresql_user.py +++ b/plugins/modules/database/postgresql/postgresql_user.py @@ -846,12 +846,13 @@ def main(): if groups: groups = [e.strip() for e in groups] comment = module.params["comment"] + session_role = module.params['session_role'] trust_input = module.params['trust_input'] if not trust_input: # Check input for potentially dangerous elements: check_input(module, user, password, privs, expires, - role_attr_flags, groups, comment) + role_attr_flags, groups, comment, session_role) conn_params = get_conn_params(module, module.params, warn_db_default=False) db_connection = connect_to_db(module, conn_params)