From 904f9643b07c5c94e392fceaff3767478eab52dd Mon Sep 17 00:00:00 2001 From: jradtilbrook Date: Tue, 4 Apr 2017 13:44:57 +0800 Subject: [PATCH] Add _namespace_ to custom filter to stop name collision --- filter_plugins/to_ini.py | 2 +- templates/pgbouncer.ini.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/filter_plugins/to_ini.py b/filter_plugins/to_ini.py index a3bfcdd..4e8c417 100644 --- a/filter_plugins/to_ini.py +++ b/filter_plugins/to_ini.py @@ -14,4 +14,4 @@ def to_ini(databases = []): class FilterModule(): def filters(self): - return {'to_ini': to_ini} + return {'pgbouncer_to_ini': to_ini} diff --git a/templates/pgbouncer.ini.j2 b/templates/pgbouncer.ini.j2 index 14d3057..19cb998 100644 --- a/templates/pgbouncer.ini.j2 +++ b/templates/pgbouncer.ini.j2 @@ -2,7 +2,7 @@ ;; Databases [databases] -{{ pgbouncer_databases | to_ini }} +{{ pgbouncer_databases | pgbouncer_to_ini }} ;; Configuration section [pgbouncer]