From d5a578940f18cd33efd906e1fd9bba72f43905ec Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Thu, 2 May 2019 16:16:38 +0200 Subject: [PATCH] PostgresStatus.String() now returns a valid JSON sting --- pkg/apis/acid.zalan.do/v1/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/acid.zalan.do/v1/util.go b/pkg/apis/acid.zalan.do/v1/util.go index c30b8c631..c669281b0 100644 --- a/pkg/apis/acid.zalan.do/v1/util.go +++ b/pkg/apis/acid.zalan.do/v1/util.go @@ -102,5 +102,5 @@ func (postgresStatus PostgresStatus) Creating() bool { } func (postgresStatus PostgresStatus) String() string { - return fmt.Sprintf(`"status":{"PostgresClusterStatus": %s}`, postgresStatus.PostgresClusterStatus) + return fmt.Sprintf(`{"status":{"PostgresClusterStatus": %s}}`, string(postgresStatus.PostgresClusterStatus)) }