Skip to content

Commit

Permalink
fix wording
Browse files Browse the repository at this point in the history
  • Loading branch information
prezha committed Feb 14, 2021
1 parent 7131daf commit bf96c43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/drivers/kvm/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit bf96c43

Please sign in to comment.