From 61174cde069f0eb0b84ea45476220cd9e81a4ef3 Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Sat, 9 May 2020 17:04:31 -0400 Subject: [PATCH] internal/netconfig: add missing error check Signed-off-by: Matt Layher --- internal/netconfig/netconfig.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/netconfig/netconfig.go b/internal/netconfig/netconfig.go index 77ad720..53637d2 100644 --- a/internal/netconfig/netconfig.go +++ b/internal/netconfig/netconfig.go @@ -238,6 +238,9 @@ func applyInterfaces(dir, root string) error { byName[details.Name] = details } links, err := netlink.LinkList() + if err != nil { + return err + } for _, l := range links { attr := l.Attrs() // TODO: prefix log line with details about the interface.