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

Fix postgresql_user module to treat quoted identifier well, Fixes #18937 (#18938)

This commit is contained in:
Aleksandr Vinokurov 2017-08-17 18:40:24 +02:00 committed by Sam Doran
parent 955cc5a99e
commit a55cef3cba

View file

@ -499,7 +499,7 @@ def get_database_privileges(cursor, user, db):
datacl = cursor.fetchone()[0]
if datacl is None:
return set()
r = re.search('%s=(C?T?c?)/[a-z]+\,?' % user, datacl)
r = re.search('%s\\\\?\"?=(C?T?c?)/[^,]+\,?' % user, datacl)
if r is None:
return set()
o = set()