fix delete

This commit is contained in:
Asim Aslam
2021-12-15 10:14:12 +00:00
parent 89720e70ff
commit fe4619ba4f

View File

@@ -421,7 +421,7 @@ func (e *GoogleFunction) Delete(ctx context.Context, req *function.DeleteRequest
cmd := exec.Command("gcloud", "functions", "delete", "--project", e.project, "--region", "europe-west1", multitenantPrefix+"-"+req.Name)
outp, err := cmd.CombinedOutput()
if err != nil {
if err != nil && !strings.Contains(err.Error(), "does not exist") {
log.Error(fmt.Errorf(string(outp)))
return err
}