Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
cli: Fix kata-env output on Power
Browse files Browse the repository at this point in the history
kata-env output always shows "VMContainerCapable=false" on Power.
This patch fixes the same.

Fixes: #2740

Signed-off-by: [email protected]
(cherry picked from commit 9ac3911)
  • Loading branch information
bpradipt committed Jun 8, 2020
1 parent 2c3b344 commit cecd7f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions cli/kata-env.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"encoding/json"
"errors"
"os"
runtim "runtime"
"strings"

"github.com/BurntSushi/toml"
Expand Down Expand Up @@ -223,9 +222,6 @@ func getHostInfo() (HostInfo, error) {
}

hostVMContainerCapable := true
if runtim.GOARCH == "ppc64le" {
hostVMContainerCapable = false
}

details := vmContainerCapableDetails{
cpuInfoFile: procCPUInfo,
Expand Down
2 changes: 1 addition & 1 deletion cli/kata-env_ppc64le_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "testing"
func getExpectedHostDetails(tmpdir string) (HostInfo, error) {
expectedVendor := ""
expectedModel := "POWER8"
expectedVMContainerCapable := false
expectedVMContainerCapable := true
return genericGetExpectedHostDetails(tmpdir, expectedVendor, expectedModel, expectedVMContainerCapable)
}

Expand Down

0 comments on commit cecd7f7

Please sign in to comment.