Merge "Use a %% to escape the % sign"

This commit is contained in:
Zuul authored and Gerrit Code Review committed 2026-09-03 15:06:45 +00:00
commit 5f1d13f38f
1 file changed
+2 -1
+2 -1
View File
@@ -77,7 +77,8 @@ def _find_alembic_conf():
config = alembic_config.Config(os.path.abspath(path))
config.set_main_option('sqlalchemy.url', CONF.database.connection)
conf_database_connection = str(CONF.database.connection).replace('%', '%%')
config.set_main_option('sqlalchemy.url', str(conf_database_connection))
# we don't want to use the logger configuration from the file, which is
# only really intended for the CLI