File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -220,11 +220,12 @@ def is_commercial_fleet() -> bool:
220220 '''
221221 Return true if the device is in a commercial fleet. Otherwise return false.
222222 '''
223- fleet_name = os .environ .get ('BALENA_APP_NAME' )
224- fleet_id = int (os .environ .get ('BALENA_APP_ID' ))
223+ # all fleets will get commercial software
224+ # fleet_name = os.environ.get('BALENA_APP_NAME')
225+ # fleet_id = int(os.environ.get('BALENA_APP_ID'))
225226
226- if not fleet_name .endswith ('-c' ) or fleet_id not in COMMERCIAL_FLEETS :
227- return False
227+ # if not fleet_name.endswith('-c') or fleet_id not in COMMERCIAL_FLEETS:
228+ # return False
228229
229230 return True
230231
Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ def test_is_commercial_fleet_true(self):
2424 @patch .dict ('os.environ' , {"BALENA_APP_NAME" : "test" })
2525 @patch .dict ('os.environ' , {"BALENA_APP_ID" : "8700" })
2626 def test_is_commercial_fleet_false (self ):
27- self .assertFalse (is_commercial_fleet ())
27+ self .assertTrue (is_commercial_fleet ())
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44
55[tool .poetry ]
66name = " hm_pyhelper"
7- version = " 0.14.37 "
7+ version = " 0.14.38 "
88description = " Helium Python Helper"
99authors = [" Nebra Ltd <support@nebra.com>" ]
1010readme = " README.md"
You can’t perform that action at this time.
0 commit comments