internal/netconfig: add missing error check
Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
parent
9f6257b046
commit
61174cde06
@ -238,6 +238,9 @@ func applyInterfaces(dir, root string) error {
|
|||||||
byName[details.Name] = details
|
byName[details.Name] = details
|
||||||
}
|
}
|
||||||
links, err := netlink.LinkList()
|
links, err := netlink.LinkList()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
for _, l := range links {
|
for _, l := range links {
|
||||||
attr := l.Attrs()
|
attr := l.Attrs()
|
||||||
// TODO: prefix log line with details about the interface.
|
// TODO: prefix log line with details about the interface.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user