diff --git a/pkg/drivers/kvm/network.go b/pkg/drivers/kvm/network.go index a0f41b2f0a2b..0c056469eab7 100644 --- a/pkg/drivers/kvm/network.go +++ b/pkg/drivers/kvm/network.go @@ -214,7 +214,7 @@ func (d *Driver) deleteNetwork() error { // when we reach this point, it means it is safe to delete the network log.Debugf("Trying to delete network %s...", d.PrivateNetwork) - destroy := func() error { + delete := func() error { active, err := network.IsActive() if err != nil { return err @@ -229,7 +229,7 @@ func (d *Driver) deleteNetwork() error { log.Debugf("Undefining inactive network %s", d.PrivateNetwork) return network.Undefine() } - if err := retry.Local(destroy, 10*time.Second); err != nil { + if err := retry.Local(delete, 10*time.Second); err != nil { return errors.Wrap(err, "deleting network") } log.Debugf("Network %s deleted", d.PrivateNetwork)