Change config to support v3.2.7 as well as 3.2.7 version formats.
balena os versions lists the versions with ‘v’ in the start.
balena os download supports both formats of versioning…
$ balena os versions raspberrypi4-64
v5.0.8
v5.0.1+rev1
v5.0.1
v4.1.3+rev2
v4.1.3+rev1
v4.1.3
v4.1.1
$ balena os download raspberrypi4-64 -o raspberrypi4-64.img --version v3.2.7
Getting device operating system for raspberrypi4-64
balenaOS image version 3.2.7 downloaded successfully
However, the issue is config generate does not support this format:
$ balena config generate --device 2dfe14303fdf1bb63a5ee6ece295a5c6 --version v3.2.7
This will generate a very old style config, with connection manager being the old connman.
Took me some effort to understand the issue was the version format.
If the version is not parsed correctly we should at least get some error or warning.