refresh daemon info cache if there is error

pull/8959/head
Medya Gh 2020-08-10 14:10:04 -07:00
parent 8b6a0eb4fb
commit bbc58fa194
1 changed files with 1 additions and 1 deletions

View File

@ -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