diff --git a/cni/network/invoker_azure.go b/cni/network/invoker_azure.go index e378a11022..90acfa2a78 100644 --- a/cni/network/invoker_azure.go +++ b/cni/network/invoker_azure.go @@ -112,7 +112,7 @@ func (invoker *AzureIPAMInvoker) deleteIpamState() { return } - if !cniStateExists && ipamStateExists { + if ipamStateExists { log.Printf("[cni] Deleting IPAM state file") err = os.Remove(platform.CNIIpamStatePath) if err != nil {