bridge, spoofcheck: only read the prerouting chain on CNI delete

Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
This commit is contained in:
Miguel Duarte Barroso
2023-03-23 17:35:19 +01:00
parent 83fe87c5b0
commit 7dcd738d34
2 changed files with 9 additions and 5 deletions

View File

@ -288,7 +288,7 @@ func (a *configurerStub) Apply(c *nft.Config) error {
return nil
}
func (a *configurerStub) Read() (*nft.Config, error) {
func (a *configurerStub) Read(_ ...string) (*nft.Config, error) {
if a.failReadConfig {
return nil, fmt.Errorf(errorReadText)
}