Unverified Commit 666b9574 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #54278 from foxyriver/fix-exit

Automatic merge from submit-queue (batch tested with PRs 54278, 56259, 56762). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. make sure of deleting archive **What this PR does / why we need it**: Exit() causes the current program to exit with the given status code, but deferred function does not run.
parents 95b7d954 7d71129f
...@@ -354,6 +354,7 @@ func main() { ...@@ -354,6 +354,7 @@ func main() {
if !exitOk { if !exitOk {
fmt.Printf("Failure: %d errors encountered.\n", errCount) fmt.Printf("Failure: %d errors encountered.\n", errCount)
callGubernator(*gubernator) callGubernator(*gubernator)
arc.deleteArchive()
os.Exit(1) os.Exit(1)
} }
callGubernator(*gubernator) callGubernator(*gubernator)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment