Don't require an existing supervisor container to sync

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2020-10-13 10:46:23 +01:00
parent 7ea9bb368e
commit 629b410e10

View File

@ -59,8 +59,12 @@ export async function getDeviceArch(docker: Docker): Promise<string> {
}
export async function getCacheFrom(docker: Docker): Promise<string[]> {
const container = await getSupervisorContainer(docker);
return [container.Image];
try {
const container = await getSupervisorContainer(docker);
return [container.Image];
} catch {
return [];
}
}
// perform the build and return the image id