Skip to content

Commit

Permalink
fix err name
Browse files Browse the repository at this point in the history
  • Loading branch information
atyronesmith committed Oct 9, 2020
1 parent 0458c09 commit 11b4cfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ func GetVFIODeviceFile(dev string) (devFile string, err error) {
namePath := filepath.Join(linkName, "name")
// Read the iommu group name
// The name file will not exist on baremetal
vfioName, err := ioutil.ReadFile(namePath)
if err == nil {
vfioName, errName := ioutil.ReadFile(namePath)
if errName == nil {
vName := strings.TrimSpace(string(vfioName))

// if the iommu group name == vfio-noiommu then we are in a VM, adjust path to vfio device
Expand Down

0 comments on commit 11b4cfb

Please sign in to comment.