going back to marshal a string to statisfy patch body

This commit is contained in:
Felix Kunde 2019-05-02 14:16:06 +02:00
parent 11b4b39697
commit 2784493665
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ func (c *Cluster) setProcessName(procName string, args ...interface{}) {
func (c *Cluster) setStatus(status string) { func (c *Cluster) setStatus(status string) {
c.logger.Debugf("updating status to %s", status) c.logger.Debugf("updating status to %s", status)
// TODO: eventually switch to updateStatus() for kubernetes 1.11 and above // TODO: eventually switch to updateStatus() for kubernetes 1.11 and above
patch, err := json.Marshal(acidv1.PostgresStatus{PostgresClusterStatus: status}) patch, err := json.Marshal(acidv1.PostgresStatus{PostgresClusterStatus: status}.String())
if err != nil { if err != nil {
c.logger.Errorf("could not marshal status: %v", err) c.logger.Errorf("could not marshal status: %v", err)
} }