mirror of https://github.com/k3s-io/k3s
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.pull/6/head
commit
666b95743a
|
@ -354,6 +354,7 @@ func main() {
|
|||
if !exitOk {
|
||||
fmt.Printf("Failure: %d errors encountered.\n", errCount)
|
||||
callGubernator(*gubernator)
|
||||
arc.deleteArchive()
|
||||
os.Exit(1)
|
||||
}
|
||||
callGubernator(*gubernator)
|
||||
|
|
Loading…
Reference in New Issue