Open klutchell opened 2 years ago
without an API query
For what it is worth, specifically with regard to the deprecation of the balena SDK's models.config.getDeviceTypes()
method and the /device-types/v1
API endpoint, we could still make use of the SDK / API to obtain device type information, just using different SDK methods / different API endpoints. For example:
@klutchell WRT device_type["yocto"]["deployArtifact"]
in the python script, it looks like it's predictable to some degree.
The pattern of options that I see is: (balena|resin)-image-flasher-(<slug>|<alias>.(balenaos|resinos)-img
Could we potentially search in the FS for whether any of the options actually exists?
Could we potentially search in the FS for whether any of the options actually exists
@thgreasi Yeah, the names are predictable so this is what I thought of as well.
We should find a better way to detect if the image is a flasher type or not, without an API query.