Skip to content

Commit 7bd2f6d

Browse files
feat: do not stop deletion on missing hns id
1 parent 082ab85 commit 7bd2f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

network/endpoint_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ func (nw *network) deleteEndpointImpl(_ netlink.NetlinkInterface, _ platform.Exe
531531

532532
if ep.HnsId == "" {
533533
logger.Error("No HNS id found. Skip endpoint deletion", zap.Any("nicType", ep.NICType), zap.String("containerId", ep.ContainerID))
534-
return fmt.Errorf("No HNS id found. Skip endpoint deletion for nicType %v, containerID %s", ep.NICType, ep.ContainerID) //nolint
534+
return nil
535535
}
536536

537537
if useHnsV2, err := UseHnsV2(ep.NetNs); useHnsV2 {

0 commit comments

Comments
 (0)