From 629b410e10fb6590806d546ff94101951ec6c9a2 Mon Sep 17 00:00:00 2001 From: Cameron Diver Date: Tue, 13 Oct 2020 10:46:23 +0100 Subject: [PATCH] Don't require an existing supervisor container to sync Change-type: patch Signed-off-by: Cameron Diver --- sync/device.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sync/device.ts b/sync/device.ts index 2cdf37fb..b78de696 100644 --- a/sync/device.ts +++ b/sync/device.ts @@ -59,8 +59,12 @@ export async function getDeviceArch(docker: Docker): Promise { } export async function getCacheFrom(docker: Docker): Promise { - 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