diff --git a/libcni/api.go b/libcni/api.go index 6ac26949..3c50535e 100644 --- a/libcni/api.go +++ b/libcni/api.go @@ -776,7 +776,7 @@ func (c *CNIConfig) GCNetworkList(ctx context.Context, list *NetworkConfigList, // First, get the list of cached attachments cachedAttachments, err := c.GetCachedAttachments("") if err != nil { - return nil + return err } var validAttachments map[types.GCAttachment]interface{}