Suppress error for faas-cli list during deletion

Fixes: #306

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (OpenFaaS Ltd) 2022-10-03 17:28:24 +01:00
parent 7c118225b2
commit 282b05802c

View File

@ -58,10 +58,10 @@ func ListFunctions(client *containerd.Client, namespace string) (map[string]*Fun
name := c.ID()
f, err := GetFunction(client, name, namespace)
if err != nil {
log.Printf("error getting function %s: ", name)
return functions, err
log.Printf("skipping %s, error: %s", name, err)
} else {
functions[name] = &f
}
functions[name] = &f
}
return functions, nil