Open pdcastro opened 3 years ago
@pdcastro but the SDK already reports as supported only the DT's that the API returns as known, which are based on what is found in the S3 bucket defined in the oB's docker-compose.yml . I see your point but I'm almost tempted to say that this works as expected atm. Maybe it's an issue of just setting the correct items in the balenaOS S3 bucket :thinking:
Connects-to: balena-io/open-balena/issues/129
Expected Behavior
openBalena users expect that the CLI's
balena devices supported
command would list the devices actually supported by openBalena (issue balena-io/balena-cli#2281). In turn, it is somewhat expected that the SDK'sdeviceType.getAllSupported()
orconfig.getDeviceTypes()
methods would list the devices actually supported by openBalena when targeting openBalena's API server. The device types supported by openBalena are currently documented in openBalena's README:Actual Behavior
config.getDeviceTypes()
returns all device types supported by balenaCloud, not openBalena.deviceType.getAllSupported()
- I couldn't test this because it currently causes an internal server error in the openBalena API, as reported in balena-io/open-balena#121 . @thgreasi clarified thatdeviceType.getAllSupported()
would probably return 0 results with openBalena.References:
deviceType.getAllSupported()
: balena-io/balena-cli#2265