You've already forked community.general
mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-12 23:02:47 +03:00
postgresql_user: add session_role parameter to check (#179)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user