Skip to content

Commit

Permalink
Errcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
kke committed Nov 3, 2021
1 parent 02fbcfb commit aea0e17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion phase/configure_k0s.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ func addUnlessExist(slice *[]string, s string) {

func (p *ConfigureK0s) configFor(h *cluster.Host) (string, error) {
cfg := p.Config.Spec.K0s.Config.Dup()
defaults.Set(&cfg)
err := defaults.Set(&cfg)
if err != nil {
return "", err
}

var sans []string

Expand Down

0 comments on commit aea0e17

Please sign in to comment.