From 69ca24a8a6bd00a1e02dd2bbce66cf0e7b2f20ee Mon Sep 17 00:00:00 2001 From: Otavio Jacobi Date: Wed, 11 Dec 2024 12:23:09 -0300 Subject: [PATCH] Fix cache of api_version and pine_endpoint on balena.cfg Change-type: patch --- balena/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/balena/settings.py b/balena/settings.py index 5259d7cc..35c0df0c 100644 --- a/balena/settings.py +++ b/balena/settings.py @@ -164,6 +164,11 @@ def __read_settings(self): config_data = {} options = config_reader.options(self.CONFIG_SECTION) for option in options: + # Always use the default supported SDK version and pine endpoint + # Unless it was explicetely defined differently (in short, do not cache this) + if option == 'api_version' or option == 'pine_endpoint': + config_data[option] = self.__base_settings[option] + continue try: config_data[option] = config_reader.get(self.CONFIG_SECTION, option) if config_data[option] == "true":