Skip to content

Commit

Permalink
feat: prepare to add all features to all fleets
Browse files Browse the repository at this point in the history
Dashboard is going EOL. Prepare to move
  • Loading branch information
shawaj authored Jan 18, 2025
1 parent c85b2c7 commit cb5ab08
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions hm_pyhelper/sbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,12 @@ def is_commercial_fleet() -> bool:
'''
Return true if the device is in a commercial fleet. Otherwise return false.
'''
fleet_name = os.environ.get('BALENA_APP_NAME')
fleet_id = int(os.environ.get('BALENA_APP_ID'))
# all fleets will get commercial software
# fleet_name = os.environ.get('BALENA_APP_NAME')
# fleet_id = int(os.environ.get('BALENA_APP_ID'))

if not fleet_name.endswith('-c') or fleet_id not in COMMERCIAL_FLEETS:
return False
# if not fleet_name.endswith('-c') or fleet_id not in COMMERCIAL_FLEETS:
# return False

return True

Expand Down

0 comments on commit cb5ab08

Please sign in to comment.