zones: fix PruneWireguardConfig recursion #1

Merged
amery merged 1 commits from pr-amery-wg-prune into main 1 year ago
  1. 2
      pkg/zones/wireguard.go

2
pkg/zones/wireguard.go

@ -45,7 +45,7 @@ func pruneWireguardConfig(m MachineIterator, ring int) error {
var err error
m.ForEachMachine(func(p *Machine) bool {
err = p.zone.PruneWireguardConfig(ring)
err = p.PruneWireguardConfig(ring)
if os.IsNotExist(err) {
// ignore
err = nil

Loading…
Cancel
Save