mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 15:56:40 +00:00
Merge pull request #1730 from balena-os/wrong-delta-source
Fix supervisor using wrong source for deltas
This commit is contained in:
commit
168f5df2dd
@ -596,12 +596,15 @@ export function bestDeltaSource(
|
|||||||
return availableImage.name;
|
return availableImage.name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
// This only makes sense for dependent devices which are still
|
||||||
|
// single app.
|
||||||
for (const availableImage of available) {
|
for (const availableImage of available) {
|
||||||
if (availableImage.appId === image.appId) {
|
if (availableImage.appId === image.appId) {
|
||||||
return availableImage.name;
|
return availableImage.name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user