Skip to content

Commit

Permalink
Use the correct field in custom binary version check (#759)
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
  • Loading branch information
kke authored Aug 29, 2024
1 parent 912cab9 commit 195cd4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phase/validate_hosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ func (p *ValidateHosts) Run() error {
}

func (p *ValidateHosts) warnK0sBinaryPath(h *cluster.Host) error {
if h.Configurer.K0sBinaryPath() != "" {
log.Warnf("%s: k0s binary path is set to %q, version checking for the host is disabled. The k0s version for other hosts is %q.", h, h.Configurer.K0sBinaryPath(), p.Config.Spec.K0s.Version)
if h.K0sBinaryPath != "" {
log.Warnf("%s: k0s binary path is set to %q, version checking for the host is disabled. The k0s version for other hosts is %s.", h, h.K0sBinaryPath, p.Config.Spec.K0s.Version)
}

return nil
Expand Down

0 comments on commit 195cd4a

Please sign in to comment.