diff --git a/stackit/internal/services/postgresflex/database/resource.go b/stackit/internal/services/postgresflex/database/resource.go index 780c2764..0bc005ca 100644 --- a/stackit/internal/services/postgresflex/database/resource.go +++ b/stackit/internal/services/postgresflex/database/resource.go @@ -348,6 +348,9 @@ func mapFields(databaseResp *postgresflex.InstanceDatabase, model *Model) error if !ok { return fmt.Errorf("owner is not a string") } + // If the field is returned between with quotes, we trim them to prevent an inconsistent result after apply + ownerStr = strings.TrimPrefix(ownerStr, `"`) + ownerStr = strings.TrimSuffix(ownerStr, `"`) model.Owner = types.StringValue(ownerStr) } }