Skip to content

Commit

Permalink
Is it a ptr?
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed Jan 18, 2022
1 parent 0a392ba commit 05bb9ea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions inttest/k0sctl/k0sctl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,15 @@ func (s *K0sctlSuite) TestK0sGetsUp() {
s.NoError(s.DownloadK0sctl())
cfg, err := s.k0sctlInitConfig()

hosts, ok := cfg.Dig("spec", "hosts").([]dig.Mapping)
hosts, ok := cfg.Dig("spec", "hosts").([]*dig.Mapping)
if !ok {
s.T().Logf("k0sctl config inspection:\n%+v", cfg)
s.Fail("could not find spec.hosts in generated k0sctl.yaml")
}

for _, h := range hosts {
h["uploadBinary"] = true
h["k0sBinaryPath"] = os.Getenv("K0S_PATH")
(*h)["uploadBinary"] = true
(*h)["k0sBinaryPath"] = os.Getenv("K0S_PATH")
}

s.NoError(err)
Expand Down

0 comments on commit 05bb9ea

Please sign in to comment.