mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 17:37:20 +00:00 
			
		
		
		
	cli: Fix kata-env output on Power
[ port from runtime commit 9ac39116b08148de8e66abfca2e5407bc153af87 ] kata-env output always shows "VMContainerCapable=false" on Power. This patch fixes the same. Signed-off-by: bpradipt@in.ibm.com Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
		
				
					committed by
					
						 Peng Tao
						Peng Tao
					
				
			
			
				
	
			
			
			
						parent
						
							94fdec4e4b
						
					
				
				
					commit
					d66f21921b
				
			| @@ -9,7 +9,6 @@ import ( | ||||
| 	"encoding/json" | ||||
| 	"errors" | ||||
| 	"os" | ||||
| 	runtim "runtime" | ||||
| 	"strings" | ||||
|  | ||||
| 	"github.com/BurntSushi/toml" | ||||
| @@ -223,9 +222,6 @@ func getHostInfo() (HostInfo, error) { | ||||
| 	} | ||||
|  | ||||
| 	hostVMContainerCapable := true | ||||
| 	if runtim.GOARCH == "ppc64le" { | ||||
| 		hostVMContainerCapable = false | ||||
| 	} | ||||
|  | ||||
| 	details := vmContainerCapableDetails{ | ||||
| 		cpuInfoFile:           procCPUInfo, | ||||
|   | ||||
| @@ -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) | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user