From 9fac207086b3d29c3c7d081e59a45402e2a3e165 Mon Sep 17 00:00:00 2001 From: Philipp Eberle Date: Tue, 18 May 2021 10:51:08 +0200 Subject: [PATCH] Switch from UID to Name when creating Zalando postgres resources (so that it matches the ID show by cloudctl postgres ls) --- api/v1/postgres_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/postgres_types.go b/api/v1/postgres_types.go index 52d2e5cf..77b02345 100644 --- a/api/v1/postgres_types.go +++ b/api/v1/postgres_types.go @@ -369,7 +369,7 @@ func (p *Postgres) generateTeamID() string { func (p *Postgres) generateDatabaseName() string { // We only want letters and numbers - generatedDatabaseName := alphaNumericRegExp.ReplaceAllString(string(p.UID), "") + generatedDatabaseName := alphaNumericRegExp.ReplaceAllString(string(p.Name), "") // Limit size maxLen := 20