PostgresStatus.String() now returns a valid JSON sting

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

View File

@ -102,5 +102,5 @@ func (postgresStatus PostgresStatus) Creating() bool {
} }
func (postgresStatus PostgresStatus) String() string { func (postgresStatus PostgresStatus) String() string {
return fmt.Sprintf(`"status":{"PostgresClusterStatus": %s}`, postgresStatus.PostgresClusterStatus) return fmt.Sprintf(`{"status":{"PostgresClusterStatus": %s}}`, string(postgresStatus.PostgresClusterStatus))
} }