Skip to content

Commit

Permalink
prevent erroring on paravirtual devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mantramantra12 authored Jan 22, 2024
1 parent 42b1251 commit c1bbf5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func readIfaceInfo(path string, attrFiles []string) nfdv1alpha1.InstanceFeature
for _, attrFile := range attrFiles {
data, err := os.ReadFile(filepath.Join(path, attrFile))
if err != nil {
if !os.IsNotExist(err) {
if !os.IsNotExist(err) && !strings.Contains(err.Error(), "invalid argument") {

Check warning on line 151 in source/network/network.go

View check run for this annotation

Codecov / codecov/patch

source/network/network.go#L151

Added line #L151 was not covered by tests
klog.ErrorS(err, "failed to read net iface attribute", "attributeName", attrFile)
}
continue
Expand Down

0 comments on commit c1bbf5b

Please sign in to comment.