mirror of
https://github.com/helm/helm.git
synced 2026-08-10 17:14:52 +00:00
Merge pull request #6191 from bacongobbler/fix-6182
fix(action): return nil if no errors occurred
This commit is contained in:
@@ -262,7 +262,9 @@ func deleteHookByPolicy(client kube.Interface, h *release.Hook, policy string) e
|
||||
return errors.Wrapf(err, "unable to build kubernetes object for deleting hook %s", h.Path)
|
||||
}
|
||||
_, errs := client.Delete(resources)
|
||||
return errors.New(joinErrors(errs))
|
||||
if len(errs) > 0 {
|
||||
return errors.New(joinErrors(errs))
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user