Browse Source

cluster: remove k8s_token files from zones on write if found

Signed-off-by: Alejandro Mery <amery@jpi.io>
Alejandro Mery 9 months ago
parent
commit
3efe9c1d20
  1. 5
      pkg/cluster/regions.go

5
pkg/cluster/regions.go

@ -204,6 +204,11 @@ func (z *Zone) SyncRegions() error {
} else {
err = p.WriteStringFile("none\n", "region")
}
if err == nil {
err = p.RemoveFile(RegionClusterTokenFileName)
}
return err != nil
})
}

Loading…
Cancel
Save