1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

postgresql_user: add session_role parameter to check (#179)

This commit is contained in:
Andrew Klychkov 2020-04-15 08:16:16 +03:00 committed by GitHub
parent f0391bd58a
commit 3c24d1c03c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)