Skip to content

Commit

Permalink
Suppress error for faas-cli list during deletion
Browse files Browse the repository at this point in the history
Fixes: #306

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Oct 3, 2022
1 parent 7c11822 commit 282b058
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/provider/handlers/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 282b058

Please sign in to comment.