From 282b05802cccd311678a73efaee78af0086cc7fd Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Mon, 3 Oct 2022 17:28:24 +0100 Subject: [PATCH] Suppress error for faas-cli list during deletion Fixes: #306 Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- pkg/provider/handlers/functions.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/provider/handlers/functions.go b/pkg/provider/handlers/functions.go index 18c12c0..9eb8006 100644 --- a/pkg/provider/handlers/functions.go +++ b/pkg/provider/handlers/functions.go @@ -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