1
0

fix: do not fail if no prebuilt container

This commit is contained in:
dump_stack() 2024-02-21 15:05:59 +00:00
parent d317769a64
commit 059ca6dc93
Signed by: dump_stack
GPG Key ID: C9905BA72B5E02BB

View File

@ -208,11 +208,12 @@ func (cmd *KernelCmd) Generate(g *Globals, km artifact.Target) (err error) {
if cmd.ContainerCache { if cmd.ContainerCache {
path := cache.ContainerURL(c.Name()) path := cache.ContainerURL(c.Name())
log.Debug().Msgf("import container %v from %v",
c.Name(), path)
err = container.Import(path, c.Name()) err = container.Import(path, c.Name())
if err != nil || cmd.shutdown { if err != nil {
return err = nil
} else {
log.Info().Msgf("container %s -> %s",
path, c.Name())
} }
} }