fix log message

This commit is contained in:
Sergey Dudoladov 2020-04-08 09:41:52 +02:00
parent 5ae17aae5e
commit 3814e89830
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ func (c *Cluster) isSafeToRecreatePods(pods *v1.PodList) bool {
for _, pod := range pods.Items { for _, pod := range pods.Items {
state, err := c.patroni.GetNodeState(&pod) state, err := c.patroni.GetNodeState(&pod)
if err != nil || state == "creating replica" { if err != nil || state == "creating replica" {
c.logger.Warningf("cannot re-create pod %s: patroni in %s state", pod.Name, state) c.logger.Warningf("cannot re-create replica %s: it is currently being initialized", pod.Name)
return false return false
} }