mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-07 11:26:41 +00:00
Support balena join
to applications of compatible architectures
Resolves: #1431 Change-type: minor Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
This commit is contained in:
parent
de8089b0bb
commit
87004621ce
@ -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