mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
check output
This commit is contained in:
@@ -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 && !strings.Contains(err.Error(), "does not exist") {
|
||||
if err != nil && !strings.Contains(string(outp), "does not exist") {
|
||||
log.Error(fmt.Errorf(string(outp)))
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user