From bbc58fa194757cf762ecd4e2dc76c5c032c0ce05 Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Mon, 10 Aug 2020 14:10:04 -0700 Subject: [PATCH] refresh daemon info cache if there is error --- pkg/drivers/kic/oci/info.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/drivers/kic/oci/info.go b/pkg/drivers/kic/oci/info.go index e939032056..f5a37435fd 100644 --- a/pkg/drivers/kic/oci/info.go +++ b/pkg/drivers/kic/oci/info.go @@ -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