Skip to content

Commit f0882a5

Browse files
committed
Fix
1 parent bcefcea commit f0882a5

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

internal/services/cockpit/plan_data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func DataSourceCockpitPlanRead(ctx context.Context, d *schema.ResourceData, m in
3131

3232
name := d.Get("name").(string)
3333

34-
res, err := api.ListPlans(&cockpit.GlobalAPIListPlansRequest{}, scw.WithContext(ctx), scw.WithAllPages())
34+
res, err := api.ListPlans(&cockpit.GlobalAPIListPlansRequest{}, scw.WithContext(ctx), scw.WithAllPages()) //nolint:staticcheck
3535
if err != nil {
3636
return diag.FromErr(err)
3737
}

internal/services/container/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ func ResourceContainerUpdate(ctx context.Context, d *schema.ResourceData, m inte
422422
}
423423

424424
if d.HasChanges("max_concurrency") {
425-
req.MaxConcurrency = scw.Uint32Ptr(uint32(d.Get("max_concurrency").(int)))
425+
req.MaxConcurrency = scw.Uint32Ptr(uint32(d.Get("max_concurrency").(int))) //nolint:staticcheck
426426
}
427427

428428
if d.HasChanges("protocol") {

internal/services/container/helpers_container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func setCreateContainerRequest(d *schema.ResourceData, region scw.Region) (*cont
110110
}
111111

112112
if maxConcurrency, ok := d.GetOk("max_concurrency"); ok {
113-
req.MaxConcurrency = scw.Uint32Ptr(uint32(maxConcurrency.(int)))
113+
req.MaxConcurrency = scw.Uint32Ptr(uint32(maxConcurrency.(int))) //nolint:staticcheck
114114
}
115115

116116
if sandbox, ok := d.GetOk("sandbox"); ok {

internal/services/instance/servers_data_source.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,11 @@ func DataSourceInstanceServersRead(ctx context.Context, d *schema.ResourceData,
218218
rawServer["placement_group_policy_respected"] = server.PlacementGroup.PolicyRespected
219219
}
220220

221-
if server.IPv6 != nil {
222-
rawServer["ipv6_address"] = server.IPv6.Address.String()
223-
rawServer["ipv6_gateway"] = server.IPv6.Gateway.String()
221+
if server.IPv6 != nil { //nolint:staticcheck
222+
rawServer["ipv6_address"] = server.IPv6.Address.String() //nolint:staticcheck
223+
rawServer["ipv6_gateway"] = server.IPv6.Gateway.String() //nolint:staticcheck
224224

225-
prefixLength, err := strconv.Atoi(server.IPv6.Netmask)
225+
prefixLength, err := strconv.Atoi(server.IPv6.Netmask) //nolint:staticcheck
226226
if err != nil {
227227
diags = append(diags, diag.FromErr(fmt.Errorf("failed to read ipv6 netmask: %w", err))...)
228228

internal/services/instance/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func flattenImageExtraVolumes(volumes map[string]*instance.Volume, zone scw.Zone
7070
volumeFlat := map[string]interface{}{
7171
"id": zonal.NewIDString(zone, volume.ID),
7272
"name": volume.Name,
73-
"export_uri": volume.ExportURI,
73+
"export_uri": volume.ExportURI, //nolint:staticcheck
7474
"size": volume.Size,
7575
"volume_type": volume.VolumeType,
7676
"creation_date": volume.CreationDate,

0 commit comments

Comments
 (0)