Skip to content

Commit

Permalink
fix(setup): move com_cluster_settings under license check
Browse files Browse the repository at this point in the history
Reorder the initialization of com_cluster_settings to be inside the
License.has_license() check. This ensures that the settings are only
appended when a valid license is present.
  • Loading branch information
atompie committed Oct 11, 2024
1 parent c717ab4 commit 84cccbc
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions tracardi/service/setup/setup_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,14 +505,17 @@ async def list_system_envs():
cluster_wide=True
))

for item in com_cluster_settings:
_cluster_settings.append(SystemSettings(
label=item["label"],
value=await item['value'](),
desc=item['desc'],
cluster_wide=True
))

if License.has_license():

for item in com_cluster_settings:
_cluster_settings.append(SystemSettings(
label=item["label"],
value=await item['value'](),
desc=item['desc'],
cluster_wide=True
))

return system_settings + com_system_settings + _cluster_settings

return system_settings + _cluster_settings

0 comments on commit 84cccbc

Please sign in to comment.