refresh daemon info cache if there is error
parent
8b6a0eb4fb
commit
bbc58fa194
|
@ -37,7 +37,7 @@ var cachedSysInfoErr *error
|
|||
|
||||
// CachedDaemonInfo will run and return a docker/podman info only once per minikube run time. to avoid performance
|
||||
func CachedDaemonInfo(ociBin string) (SysInfo, error) {
|
||||
if cachedSysInfo == nil {
|
||||
if cachedSysInfo == nil || cachedSysInfoErr != nil { // if cached daemon info has error, try to get a new one
|
||||
si, err := DaemonInfo(ociBin)
|
||||
cachedSysInfo = &si
|
||||
cachedSysInfoErr = &err
|
||||
|
|
Loading…
Reference in New Issue