Merge pull request #1730 from balena-os/wrong-delta-source

Fix supervisor using wrong source for deltas
This commit is contained in:
bulldozer-balena[bot] 2021-06-29 05:35:08 +00:00 committed by GitHub
commit 168f5df2dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -596,10 +596,13 @@ export function bestDeltaSource(
return availableImage.name;
}
}
}
for (const availableImage of available) {
if (availableImage.appId === image.appId) {
return availableImage.name;
} else {
// This only makes sense for dependent devices which are still
// single app.
for (const availableImage of available) {
if (availableImage.appId === image.appId) {
return availableImage.name;
}
}
}
return null;