Skip to content

Commit

Permalink
Fix Nebra fleet check (#271)
Browse files Browse the repository at this point in the history
* Fix Nebra fleet check

Fix logic

* Update pyproject.toml
  • Loading branch information
shawaj authored Jun 27, 2023
1 parent de696c2 commit ee6e97e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hm_pyhelper/sbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def is_nebra_fleet() -> bool:
api_url = os.environ.get('BALENA_API_URL')
fleet_id = int(os.environ.get('BALENA_APP_ID'))

if api_url is not NEBRA_API_URL or fleet_id not in COMMERCIAL_FLEETS or fleet_id not in NON_COMMERCIAL_FLEETS:
if api_url is not NEBRA_API_URL or (fleet_id not in COMMERCIAL_FLEETS and fleet_id not in NON_COMMERCIAL_FLEETS):
return False

return True
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "hm_pyhelper"
version = "0.14.17"
version = "0.14.18"
description = "Helium Python Helper"
authors = ["Nebra Ltd <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit ee6e97e

Please sign in to comment.