Skip to content

Commit

Permalink
Fix cache of api_version and pine_endpoint on balena.cfg
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
otaviojacobi committed Dec 11, 2024
1 parent 6256c7a commit 69ca24a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions balena/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 69ca24a

Please sign in to comment.