diff --git a/phase/gather_k0s_facts.go b/phase/gather_k0s_facts.go index 31929ab5..e7e406fe 100644 --- a/phase/gather_k0s_facts.go +++ b/phase/gather_k0s_facts.go @@ -124,7 +124,7 @@ func (p *GatherK0sFacts) needsUpgrade(h *cluster.Host) bool { // If supplimental files or a k0s binary have been specified explicitly, // always upgrade. This covers the scenario where a user moves from a // default-install cluster to one fed by OCI image bundles (ie. airgap) - if len(h.Files) != 0 || len(h.K0sBinaryPath) == 0 { + if len(h.Files) > 0 || h.K0sBinaryPath != "" { return true }