mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-21 01:42:26 +00:00
Merge pull request #1435 from balena-io/1431-balena-join-compatible-arch
Support `balena join` to applications of compatible architectures
This commit is contained in:
commit
90db52db47
@ -216,7 +216,11 @@ async function getOrSelectApplication(
|
||||
throw new Error(`"${deviceType}" is not a valid device type`);
|
||||
}
|
||||
const compatibleDeviceTypes = _(allDeviceTypes)
|
||||
.filter({ arch: deviceTypeManifest.arch })
|
||||
.filter(dt =>
|
||||
sdk.models.os.isArchitectureCompatibleWith(deviceTypeManifest.arch, dt.arch) &&
|
||||
!!dt.isDependent === !!deviceTypeManifest.isDependent &&
|
||||
dt.state !== 'DISCONTINUED'
|
||||
)
|
||||
.map(type => type.slug)
|
||||
.value();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user