Merge "Use a %% to escape the % sign"
This commit is contained in:
commit
5f1d13f38f
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user