Skip to content

Commit

Permalink
Revert PR #482 (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewhli authored Jan 31, 2025
1 parent 93be449 commit e663cf5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions google_guest_agent/network/manager/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,10 @@ func interfaceNames(nics []metadata.NetworkInterfaces) ([]string, error) {
for _, ni := range nics {
iface, err := GetInterfaceByMAC(ni.Mac)
if err != nil {
if _, found := badMAC[ni.Mac]; !found {
logger.Errorf("error getting interface: %v", err)
badMAC[ni.Mac] = iface
continue
}
return nil, err
}
ifaces = append(ifaces, iface.Name)
}
if len(ifaces) == 0 {
return nil, fmt.Errorf("no valid interfaces found")
}
return ifaces, nil
}

Expand Down

0 comments on commit e663cf5

Please sign in to comment.