You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We removed the variant from the OS version string since meta-balena 2.85.0, however the change was not picked by all device types immediately so it is not safe to assume if version > 2.85.0: do_not_append_variant. We could maybe check that the built OS version string is valid before returning it.
Expected Behavior
models.device.getOsVersion does not append the variant if the actual OS version string does not include it.
Actual Behavior
The variant is appended blindly and returns e.g. 2.95.8+prod even though the actual OS version is 2.95.8.
@mtoman is 2.85.0 the first w/o a dev/prod for all DTs?
Also, is there any such magic version for ESRs as well, that is also consistent across all DTs?
The most appropriate way I can think atm is to actually make an async call to the API to figure out whether that version is a unified release or not 🤔
We removed the variant from the OS version string since meta-balena 2.85.0, however the change was not picked by all device types immediately so it is not safe to assume
if version > 2.85.0: do_not_append_variant
. We could maybe check that the built OS version string is valid before returning it.Expected Behavior
models.device.getOsVersion
does not append the variant if the actual OS version string does not include it.Actual Behavior
The variant is appended blindly and returns e.g.
2.95.8+prod
even though the actual OS version is2.95.8
.Steps to Reproduce the Problem
balena.models.device.getOsVersion(uuid)
returns2.95.8+prod
Specifications
The text was updated successfully, but these errors were encountered: