Skip to content

Commit 69ca24a

Browse files
committed
Fix cache of api_version and pine_endpoint on balena.cfg
Change-type: patch
1 parent 6256c7a commit 69ca24a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

balena/settings.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ def __read_settings(self):
164164
config_data = {}
165165
options = config_reader.options(self.CONFIG_SECTION)
166166
for option in options:
167+
# Always use the default supported SDK version and pine endpoint
168+
# Unless it was explicetely defined differently (in short, do not cache this)
169+
if option == 'api_version' or option == 'pine_endpoint':
170+
config_data[option] = self.__base_settings[option]
171+
continue
167172
try:
168173
config_data[option] = config_reader.get(self.CONFIG_SECTION, option)
169174
if config_data[option] == "true":

0 commit comments

Comments
 (0)