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

Commit

Permalink
cc-env: Include hypervisor block storage driver in cc-env output
Browse files Browse the repository at this point in the history
Add the hypervisor block device driver being used in the
Hypervisor section of cc-env output.

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
  • Loading branch information
amshinde committed Feb 28, 2018
1 parent 1768dd5 commit 2082315
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
16 changes: 9 additions & 7 deletions cc-env.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ type RuntimeVersionInfo struct {

// HypervisorInfo stores hypervisor details
type HypervisorInfo struct {
MachineType string
Version string
Path string
Debug bool
MachineType string
Version string
Path string
Debug bool
BlockDeviceDriver string
}

// ProxyInfo stores proxy details
Expand Down Expand Up @@ -269,9 +270,10 @@ func getHypervisorInfo(config oci.RuntimeConfig) HypervisorInfo {
}

return HypervisorInfo{
MachineType: config.HypervisorConfig.HypervisorMachineType,
Version: version,
Path: hypervisorPath,
MachineType: config.HypervisorConfig.HypervisorMachineType,
Version: version,
Path: hypervisorPath,
BlockDeviceDriver: config.HypervisorConfig.BlockDeviceDriver,
}
}

Expand Down
7 changes: 4 additions & 3 deletions cc-env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,10 @@ model name : %s

func getExpectedHypervisor(config oci.RuntimeConfig) HypervisorInfo {
return HypervisorInfo{
Version: testHypervisorVersion,
Path: config.HypervisorConfig.HypervisorPath,
MachineType: config.HypervisorConfig.HypervisorMachineType,
Version: testHypervisorVersion,
Path: config.HypervisorConfig.HypervisorPath,
MachineType: config.HypervisorConfig.HypervisorMachineType,
BlockDeviceDriver: config.HypervisorConfig.BlockDeviceDriver,
}
}

Expand Down

0 comments on commit 2082315

Please sign in to comment.