mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-07 00:51:45 +02:00
PostgresStatus.String() now returns a valid JSON sting
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user