Skip to content

Commit 6ef5715

Browse files
committed
libcni: always delete the cache on conflist for CNI DEL
This aligns the call with `DelNetwork`, and allows CRIO tests to bump - [0]. [0] - cri-o/cri-o#8207 (comment) Signed-off-by: Miguel Duarte Barroso <[email protected]>
1 parent c04330e commit 6ef5715

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libcni/api.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,7 @@ func (c *CNIConfig) DelNetworkList(ctx context.Context, list *NetworkConfigList,
598598
}
599599
}
600600

601-
if cachedResult != nil {
602-
_ = c.cacheDel(list.Name, rt)
603-
}
601+
_ = c.cacheDel(list.Name, rt)
604602

605603
return nil
606604
}

0 commit comments

Comments
 (0)