feat: update name assignment to use GetName method in mapper
This commit is contained in:
parent
6802b64faf
commit
bac8ebe236
1 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ func mapFields(
|
|||
|
||||
model.Id = types.Int64Value(databaseId)
|
||||
model.DatabaseID = types.Int64Value(databaseId)
|
||||
model.Name = types.StringPointerValue(source.Name)
|
||||
model.Name = types.StringValue(source.GetName())
|
||||
model.Owner = types.StringPointerValue(cleanString(source.Owner))
|
||||
model.Region = types.StringValue(region)
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ func mapResourceFields(source *postgresflexalpha.ListDatabase, model *ResourceMo
|
|||
|
||||
model.Id = types.Int64Value(databaseId)
|
||||
model.DatabaseID = types.Int64Value(databaseId)
|
||||
model.Name = types.StringPointerValue(source.Name)
|
||||
model.Name = types.StringValue(source.GetName())
|
||||
model.Owner = types.StringPointerValue(cleanString(source.Owner))
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue