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:
parent
f0391bd58a
commit
3c24d1c03c
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue