mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-04 20:21:54 +02:00
Fix logging command.
This commit is contained in:
@@ -75,7 +75,7 @@ func (c *Cluster) majorVersionUpgrade() error {
|
||||
podName := &spec.NamespacedName{Namespace: masterPod.Namespace, Name: masterPod.Name}
|
||||
c.logger.Infof("triggering major version upgrade on pod %s", masterPod.Name)
|
||||
command := fmt.Sprintf("su postgres -c \"python3 /scripts/inplace_upgrade.py %d 2>&1 | tee last_upgrade.log\"", numberOfPods)
|
||||
c.logger.Info("executing: %s", command)
|
||||
c.logger.Infof("executing: %s", command)
|
||||
_, err := c.ExecCommand(podName, command)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user