Skip to content

Commit

Permalink
cli: fix build
Browse files Browse the repository at this point in the history
Sadly CI failed to catch the broken line due to the fact that it is introduced by a different
PR that passed w/o the naming PR.

./config.go:604:27: config.DefaultMemSz undefined (type virtcontainers.HypervisorConfig has no field or method DefaultMemSz)
Makefile:331: recipe for target '/golang/src/github.com/kata-containers/runtime/kata-runtime' failed
make: *** [/golang/src/github.com/kata-containers/runtime/kata-runtime] Error 2

Fixes: kata-containers#709

Signed-off-by: Peng Tao <[email protected]>
  • Loading branch information
bergwolf committed Sep 11, 2018
1 parent 52394c3 commit 718c240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ func checkHypervisorConfig(config vc.HypervisorConfig) error {
},
}

memSizeMB := int64(config.DefaultMemSz)
memSizeMB := int64(config.MemorySize)

if memSizeMB == 0 {
return errors.New("VM memory cannot be zero")
Expand Down

0 comments on commit 718c240

Please sign in to comment.