Skip to content

Commit 3816595

Browse files
committed
fix: add compilation fixes for container, function and webhosting services
1 parent 1f22ed7 commit 3816595

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

internal/services/container/namespace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func ResourceContainerNamespaceCreate(ctx context.Context, d *schema.ResourceDat
122122
Name: types.ExpandOrGenerateString(d.Get("name").(string), "ns"),
123123
ProjectID: d.Get("project_id").(string),
124124
Region: region,
125-
ActivateVpcIntegration: true,
125+
ActivateVpcIntegration: scw.BoolPtr(true),
126126
}
127127

128128
rawTag, tagExist := d.GetOk("tags")

internal/services/function/namespace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func ResourceFunctionNamespaceCreate(ctx context.Context, d *schema.ResourceData
113113
Name: types.ExpandOrGenerateString(d.Get("name").(string), "func"),
114114
ProjectID: d.Get("project_id").(string),
115115
Region: region,
116-
ActivateVpcIntegration: true,
116+
ActivateVpcIntegration: scw.BoolPtr(true),
117117
}
118118

119119
rawTag, tagExist := d.GetOk("tags")

internal/services/webhosting/webhosting.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func resourceWebhostingRead(ctx context.Context, d *schema.ResourceData, m any)
303303
}
304304

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

315315
_ = d.Set("tags", webhostingResponse.Tags)
316316
_ = d.Set("offer_id", regional.NewIDString(region, webhostingResponse.Offer.ID))
317-
_ = d.Set("domain", webhostingResponse.Domain)
317+
_ = d.Set("domain", webhostingResponse.Domain) //nolint:staticcheck // deprecated in SDK, exported for backward compatibility
318318
_ = d.Set("created_at", types.FlattenTime(webhostingResponse.CreatedAt))
319319
_ = d.Set("updated_at", types.FlattenTime(webhostingResponse.UpdatedAt))
320320
_ = d.Set("status", webhostingResponse.Status.String())

internal/services/webhosting/webhosting_data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func DataSourceWebhostingRead(ctx context.Context, d *schema.ResourceData, m any
6464

6565
foundDomain, err := datasource.FindExact(
6666
res.Hostings,
67-
func(s *webhosting.HostingSummary) bool { return s.Domain == hostingDomain },
67+
func(s *webhosting.HostingSummary) bool { return *s.Domain == hostingDomain }, //nolint:staticcheck // deprecated in SDK, used until domain_info available here
6868
hostingDomain,
6969
)
7070
if err != nil {

0 commit comments

Comments
 (0)