mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-09 00:16:46 +00:00
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:
parent
7c118225b2
commit
282b05802c
@ -58,10 +58,10 @@ func ListFunctions(client *containerd.Client, namespace string) (map[string]*Fun
|
|||||||
name := c.ID()
|
name := c.ID()
|
||||||
f, err := GetFunction(client, name, namespace)
|
f, err := GetFunction(client, name, namespace)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("error getting function %s: ", name)
|
log.Printf("skipping %s, error: %s", name, err)
|
||||||
return functions, err
|
} else {
|
||||||
|
functions[name] = &f
|
||||||
}
|
}
|
||||||
functions[name] = &f
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return functions, nil
|
return functions, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user