Skip to content

Commit d68c44c

Browse files
oktalzmjuraga
authored andcommitted
BUG/MINOR: cluster: do not remove bootstrap key when cleaning data
1 parent 063a939 commit d68c44c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configuration/configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func (c *Configuration) Save() error {
287287
cfg := c.storage.Get()
288288
cfg.ServiceDiscovery = nil
289289
}
290-
if cfg.Mode.Load() != "cluster" {
290+
if cfg.Mode.Load() != "cluster" && cfg.Cluster.BootstrapKey.Load() == "" {
291291
storage := cfg.storage.Get()
292292
storage.Cluster = nil
293293
}

0 commit comments

Comments
 (0)