From 5da21431d086effa7fc266bb7c06230fd3682fca Mon Sep 17 00:00:00 2001 From: SandakovMM Date: Thu, 26 Mar 2026 17:48:46 +0200 Subject: [PATCH] Remove quoting for system locales to make sure they match locales obtained from postgres --- cloudlinux7to8/actions/postgres.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cloudlinux7to8/actions/postgres.py b/cloudlinux7to8/actions/postgres.py index b858ff4..5e5253b 100644 --- a/cloudlinux7to8/actions/postgres.py +++ b/cloudlinux7to8/actions/postgres.py @@ -47,7 +47,10 @@ def _do_check(self): log.debug(f"Got unexpected Postgres locales set: {pg_locales!r}") return False - sys_locales = set(l.split('=')[1].strip() for l in files.find_file_substrings('/etc/locale.conf', 'LANG=')) + sys_locales = set( + locale_str.split('=')[1].strip().strip('"') for locale_str + in files.find_file_substrings('/etc/locale.conf', 'LANG=') + ) env_locale = locale.getlocale() if env_locale and env_locale[0]: sys_locales.add('.'.join(map(str, env_locale)))