Compare commits

...

1 Commits

Author SHA1 Message Date
282b05802c Suppress error for faas-cli list during deletion
Fixes: #306

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-10-03 17:28:24 +01:00

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