Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ require (
github.com/nats-io/jwt/v2 v2.8.0
github.com/nats-io/nats.go v1.46.1
github.com/robfig/cron/v3 v3.0.1
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250721082157-a9b7a7bd9686
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35
github.com/stretchr/testify v1.11.1
golang.org/x/crypto v0.42.0
gopkg.in/dnaeon/go-vcr.v3 v3.2.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250721082157-a9b7a7bd9686 h1:rSbtkU5fMMXbv0qwIH5dBq+TvAYnbClahwPP1KtN9bs=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250721082157-a9b7a7bd9686/go.mod h1:fw6BmcfYRs2BEHYW0c3/rR0JgZHvdx6uMYqpeUJx3Bc=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35 h1:8xfn1RzeI9yoCUuEwDy08F+No6PcKZGEDOQ6hrRyLts=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35/go.mod h1:47B1d/YXmSAxlJxUJxClzHR6b3T4M1WyCvwENPQNBWc=
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
Expand Down
2 changes: 1 addition & 1 deletion internal/services/container/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func ResourceContainerNamespaceCreate(ctx context.Context, d *schema.ResourceDat
Name: types.ExpandOrGenerateString(d.Get("name").(string), "ns"),
ProjectID: d.Get("project_id").(string),
Region: region,
ActivateVpcIntegration: true,
ActivateVpcIntegration: scw.BoolPtr(true),
}

rawTag, tagExist := d.GetOk("tags")
Expand Down
2 changes: 1 addition & 1 deletion internal/services/function/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func ResourceFunctionNamespaceCreate(ctx context.Context, d *schema.ResourceData
Name: types.ExpandOrGenerateString(d.Get("name").(string), "func"),
ProjectID: d.Get("project_id").(string),
Region: region,
ActivateVpcIntegration: true,
ActivateVpcIntegration: scw.BoolPtr(true),
}

rawTag, tagExist := d.GetOk("tags")
Expand Down
2 changes: 1 addition & 1 deletion internal/services/iam/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func resourceIamUserRead(ctx context.Context, d *schema.ResourceData, m any) dia
_ = d.Set("deletable", user.Deletable)
_ = d.Set("last_login_at", types.FlattenTime(user.LastLoginAt))
_ = d.Set("type", user.Type)
_ = d.Set("status", user.Status)
_ = d.Set("status", user.Status.String()) //nolint:staticcheck // convert enum to string for schema compatibility
_ = d.Set("mfa", user.Mfa)
_ = d.Set("account_root_user_id", user.AccountRootUserID)
_ = d.Set("locked", user.Locked)
Expand Down
4 changes: 2 additions & 2 deletions internal/services/webhosting/webhosting.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func resourceWebhostingRead(ctx context.Context, d *schema.ResourceData, m any)
}

dnsRecordsResponse, err := dnsAPI.GetDomainDNSRecords(&webhosting.DNSAPIGetDomainDNSRecordsRequest{
Domain: webhostingResponse.Domain,
Domain: *webhostingResponse.Domain, //nolint:staticcheck // deprecated in SDK, kept until domain_info fully propagated
}, scw.WithContext(ctx))
if err != nil {
return diag.FromErr(err)
Expand All @@ -314,7 +314,7 @@ func resourceWebhostingRead(ctx context.Context, d *schema.ResourceData, m any)

_ = d.Set("tags", webhostingResponse.Tags)
_ = d.Set("offer_id", regional.NewIDString(region, webhostingResponse.Offer.ID))
_ = d.Set("domain", webhostingResponse.Domain)
_ = d.Set("domain", webhostingResponse.Domain) //nolint:staticcheck // deprecated in SDK, exported for backward compatibility
_ = d.Set("created_at", types.FlattenTime(webhostingResponse.CreatedAt))
_ = d.Set("updated_at", types.FlattenTime(webhostingResponse.UpdatedAt))
_ = d.Set("status", webhostingResponse.Status.String())
Expand Down
2 changes: 1 addition & 1 deletion internal/services/webhosting/webhosting_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func DataSourceWebhostingRead(ctx context.Context, d *schema.ResourceData, m any

foundDomain, err := datasource.FindExact(
res.Hostings,
func(s *webhosting.HostingSummary) bool { return s.Domain == hostingDomain },
func(s *webhosting.HostingSummary) bool { return *s.Domain == hostingDomain }, //nolint:staticcheck // deprecated in SDK, used until domain_info available here
hostingDomain,
)
if err != nil {
Expand Down
Loading