fix: postgresqlflex flavor errors (#107)
feat: enable old v2 flavor handling Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud> Reviewed-on: #107
This commit is contained in:
parent
ebb3ec051d
commit
8fee76f037
46 changed files with 2209 additions and 695 deletions
|
|
@ -16,7 +16,7 @@ import (
|
|||
|
||||
func mapGetInstanceResponseToModel(
|
||||
ctx context.Context,
|
||||
m *postgresflexalpharesource.InstanceModel,
|
||||
m *LocalInstanceModel,
|
||||
resp *postgresflex.GetInstanceResponse,
|
||||
) error {
|
||||
m.BackupSchedule = types.StringValue(resp.GetBackupSchedule())
|
||||
|
|
@ -71,6 +71,8 @@ func mapGetInstanceResponseToModel(
|
|||
|
||||
m.Acl = netACL
|
||||
|
||||
// m.Labels = resp.GetLabels()
|
||||
|
||||
netInstAdd := types.StringValue("")
|
||||
if instAdd, ok := resp.Network.GetInstanceAddressOk(); ok {
|
||||
netInstAdd = types.StringValue(*instAdd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue