Do not retry on success
This commit is contained in:
parent
97fb543fef
commit
2d345c584b
@ -767,6 +767,7 @@ func generateKernels(km config.KernelMask, registry string,
|
|||||||
err = installKernel(km, pkg, force, headers)
|
err = installKernel(km, pkg, force, headers)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
max--
|
max--
|
||||||
|
break
|
||||||
} else if attempt >= retries {
|
} else if attempt >= retries {
|
||||||
log.Fatal().Err(err).Msg("install kernel")
|
log.Fatal().Err(err).Msg("install kernel")
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user