From b3475b5aed903bbb61e0f166de5c842fc4bef806 Mon Sep 17 00:00:00 2001 From: "Zhou,Haiwei" Date: Wed, 18 Nov 2020 17:25:46 +0800 Subject: [PATCH] Cope with '%' in password when waiting for migrations --- chart/templates/_helpers.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/templates/_helpers.yaml b/chart/templates/_helpers.yaml index df7b158cb97a7..98efc9f1b31cb 100644 --- a/chart/templates/_helpers.yaml +++ b/chart/templates/_helpers.yaml @@ -380,7 +380,7 @@ server_tls_key_file = /etc/pgbouncer/server.key directory = os.path.join(package_dir, 'migrations') config = Config(os.path.join(package_dir, 'alembic.ini')) config.set_main_option('script_location', directory) - config.set_main_option('sqlalchemy.url', settings.SQL_ALCHEMY_CONN) + config.set_main_option('sqlalchemy.url', settings.SQL_ALCHEMY_CONN.replace('%', '%%')) script_ = ScriptDirectory.from_config(config) timeout=60