Update pkg/cluster/pod.go

This commit is contained in:
Felix Kunde 2021-11-24 12:05:16 +01:00 committed by GitHub
parent 92b2e9da4c
commit 87d50d2ed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ func (c *Cluster) getSwitchoverCandidate(master *v1.Pod) (spec.NamespacedName, e
} }
if len(skipReasons) > 0 { if len(skipReasons) > 0 {
err = fmt.Errorf("no replica suitable for switchover: %s", strings.Join(skipReasons, `','`)) err = fmt.Errorf("no replica suitable for switchover: %s", strings.Join(skipReasons, `', '`))
} else { } else {
err = fmt.Errorf("no replica running") err = fmt.Errorf("no replica running")
} }