From 70ffb6c1e79958444419c847c97b41ceac022005 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 24 Dec 2025 02:26:43 +0900 Subject: [PATCH] Resolve deprecation warning from alembic Resolve the following warning from alembic by adding the path_separator option: DeprecationWarning: No path_separator found in configuration; falling back to legacy splitting on spaces, commas, and colons for prepend_sys_path. Consider adding path_separator=os to Alembic config. The same was done in nova for example. https://review.opendev.org/c/openstack/nova/+/952266 Change-Id: I4a8cf5a54e3de768cd1883b67ce57484c32ce643 Signed-off-by: Takashi Kajinami --- designate/storage/sqlalchemy/alembic.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/designate/storage/sqlalchemy/alembic.ini b/designate/storage/sqlalchemy/alembic.ini index 34be5f67a..338fad740 100644 --- a/designate/storage/sqlalchemy/alembic.ini +++ b/designate/storage/sqlalchemy/alembic.ini @@ -14,6 +14,10 @@ script_location = %(here)s/alembic # defaults to the current working directory. prepend_sys_path = . +# indicates what character is used to split lists of file paths, including +# version_locations and prepend_sys_path +path_separator = os + # timezone to use when rendering the date within the migration file # as well as the filename. # If specified, requires the python-dateutil library that can be