diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2014-11-25 01:42:33 -0800 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2014-11-25 01:42:33 -0800 |
commit | 06ac459fc5d855dd3725b6a4e17ce57bed1c66f7 (patch) | |
tree | 1a5d9dcaf58bbca29534ed1ec3fe8227d6bfba63 | |
parent | c84ae5429444d42da2e6af44332759d0a92c0f52 (diff) | |
download | ansible-modules-core-06ac459fc5d855dd3725b6a4e17ce57bed1c66f7.tar.gz |
Correct new function name
-rw-r--r-- | database/postgresql/postgresql_privs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/database/postgresql/postgresql_privs.py b/database/postgresql/postgresql_privs.py index 55821756..febdc9ed 100644 --- a/database/postgresql/postgresql_privs.py +++ b/database/postgresql/postgresql_privs.py @@ -460,18 +460,18 @@ class Connection(object): # set_what: SQL-fragment specifying what to set for the target roles: # Either group membership or privileges on objects of a certain type if obj_type == 'group': - set_what = ','.join(pg_quote_identifiers(i, 'role') for i in obj_ids) + set_what = ','.join(pg_quote_identifier(i, 'role') for i in obj_ids) else: # Note: obj_type has been checked against a set of string literals # and privs was escaped when it was parsed set_what = '%s ON %s %s' % (','.join(privs), obj_type, - ','.join(pg_quote_identifiers(i, 'table') for i in obj_ids)) + ','.join(pg_quote_identifier(i, 'table') for i in obj_ids)) # for_whom: SQL-fragment specifying for whom to set the above if roles == 'PUBLIC': for_whom = 'PUBLIC' else: - for_whom = ','.join(pg_quote_identifiers(r, 'role') for r in roles) + for_whom = ','.join(pg_quote_identifier(r, 'role') for r in roles) status_before = get_status(objs) if state == 'present': |