From 72a66cbb9ee1a2f104c2748a68e5660122422264 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 9 Jun 2025 15:18:10 +0100 Subject: [PATCH] db: Resolve alembic deprecation warning Resolve the following deprecation warning: 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. We don't have multiple paths so this is otherwise a no-op. Change-Id: I5cef2bedccd3cb3d844c3c8e0516050a56c18d58 Signed-off-by: Stephen Finucane --- nova/db/api/alembic.ini | 4 ++++ nova/db/main/alembic.ini | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/nova/db/api/alembic.ini b/nova/db/api/alembic.ini index dd668e67d5..b27c900014 100644 --- a/nova/db/api/alembic.ini +++ b/nova/db/api/alembic.ini @@ -11,6 +11,10 @@ script_location = %(here)s/migrations # 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. # string value is passed to dateutil.tz.gettz() diff --git a/nova/db/main/alembic.ini b/nova/db/main/alembic.ini index 3bb8b83c27..6588cc9230 100644 --- a/nova/db/main/alembic.ini +++ b/nova/db/main/alembic.ini @@ -11,6 +11,10 @@ script_location = %(here)s/migrations # 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. # string value is passed to dateutil.tz.gettz()