FreeBSD Bugzilla – Attachment 152558 Details for
Bug 197325
sysutils/ansible: fix for PostgreSQL function quoting
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for postgresql_privs
ansible.patch (text/plain), 2.00 KB, created by
Jimmy Olgeni
on 2015-02-04 17:06:41 UTC
(
hide
)
Description:
Fix for postgresql_privs
Filename:
MIME Type:
Creator:
Jimmy Olgeni
Created:
2015-02-04 17:06:41 UTC
Size:
2.00 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 378394) >+++ Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= ansible > PORTVERSION= 1.8.2 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= sysutils python > MASTER_SITES= http://releases.ansible.com/ansible/ > >Index: files/patch-lib_ansible_modules_core_database_postgresql_postgresql__privs.py >=================================================================== >--- files/patch-lib_ansible_modules_core_database_postgresql_postgresql__privs.py (revision 0) >+++ files/patch-lib_ansible_modules_core_database_postgresql_postgresql__privs.py (working copy) >@@ -0,0 +1,20 @@ >+ >+$FreeBSD$ >+ >+--- lib/ansible/modules/core/database/postgresql/postgresql_privs.py.orig >++++ lib/ansible/modules/core/database/postgresql/postgresql_privs.py >+@@ -462,10 +462,13 @@ >+ if obj_type == 'group': >+ set_what = ','.join(pg_quote_identifier(i, 'role') for i in obj_ids) >+ else: >++ # function types are already quoted above >++ if obj_type != 'function': >++ obj_ids = [pg_quote_identifier(i, 'table') for i in obj_ids] >+ # 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_identifier(i, 'table') for i in obj_ids)) >++ ','.join(obj_ids)) >+ >+ # for_whom: SQL-fragment specifying for whom to set the above >+ if roles == 'PUBLIC': > >Property changes on: files/patch-lib_ansible_modules_core_database_postgresql_postgresql__privs.py >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197325
: 152558