Skip to content

Commit

Permalink
fix(rdb): replace ipnet as optional (#1835)
Browse files Browse the repository at this point in the history
* fix(rdb): replace ipnet as optional

* chore: bump sdk

* revert instance
  • Loading branch information
Monitob authored Mar 13, 2023
1 parent 8cdd5f3 commit a5ac27c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/hashicorp/terraform-plugin-log v0.8.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.25.0
github.com/robfig/cron/v3 v3.0.1
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.13.0.20230302164846-e3bfb40a1745
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.14.0.20230310155856-7a2786489bc6
github.com/stretchr/testify v1.8.2
golang.org/x/exp v0.0.0-20230118134722-a68e582fa157
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:
github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs=
github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro=
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.13.0.20230302164846-e3bfb40a1745 h1:MvSkE8KmrPqDsdWLxJhMXTQAvB/+3iOYsT92MlZETYE=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.13.0.20230302164846-e3bfb40a1745/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.14.0.20230310155856-7a2786489bc6 h1:bAqxZt/1FAD/M4XLqWYHySz5kNcoQ7Mrdo7imgWAyaQ=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.14.0.20230310155856-7a2786489bc6/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
github.com/sebdah/goldie v1.0.0/go.mod h1:jXP4hmWywNEwZzhMuv2ccnqTSFpuq8iyQhtQdkkZBH4=
github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
Expand Down
4 changes: 2 additions & 2 deletions scaleway/helpers_rdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func expandPrivateNetwork(data interface{}, exist bool) ([]*rdb.EndpointSpec, er
spec := &rdb.EndpointSpec{
PrivateNetwork: &rdb.EndpointSpecPrivateNetwork{
PrivateNetworkID: expandID(r["pn_id"].(string)),
ServiceIP: ip,
ServiceIP: &ip,
},
}
res = append(res, spec)
Expand Down Expand Up @@ -288,7 +288,7 @@ func expandReadReplicaEndpointsSpecPrivateNetwork(data interface{}) (*rdb.ReadRe

endpoint.PrivateNetwork = &rdb.ReadReplicaEndpointSpecPrivateNetwork{
PrivateNetworkID: expandID(rawEndpoint["private_network_id"]),
ServiceIP: ip,
ServiceIP: &ip,
}
return endpoint, nil
}
Expand Down

0 comments on commit a5ac27c

Please sign in to comment.