mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
postgresql_user: fix test errors on newer Fedora versions (#47166)
This commit is contained in:
parent
f720499337
commit
dd46f953f6
4 changed files with 29 additions and 12 deletions
|
@ -406,6 +406,8 @@ def user_alter(db_connection, module, user, password, role_attr_flags, encrypted
|
|||
return changed
|
||||
else:
|
||||
raise psycopg2.InternalError(e)
|
||||
except psycopg2.NotSupportedError as e:
|
||||
module.fail_json(msg=e.pgerror, exception=traceback.format_exc())
|
||||
|
||||
elif no_password_changes and role_attr_flags != '':
|
||||
# Grab role information from pg_roles instead of pg_authid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue