Skip to content

Commit 58d39e7

Browse files
committed
ignore deprecated errors
1 parent be8bd41 commit 58d39e7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

internal/services/instance/server.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ func ResourceInstanceServerCreate(ctx context.Context, d *schema.ResourceData, m
395395
}
396396

397397
if bootScriptID, ok := d.GetOk("bootscript_id"); ok {
398-
req.Bootscript = types.ExpandStringPtr(bootScriptID)
398+
req.Bootscript = types.ExpandStringPtr(bootScriptID) //nolint:staticcheck
399399
}
400400

401401
if bootType, ok := d.GetOk("boot_type"); ok {
@@ -575,8 +575,8 @@ func ResourceInstanceServerRead(ctx context.Context, d *schema.ResourceData, m i
575575
_ = d.Set("zone", string(zone))
576576
_ = d.Set("name", server.Name)
577577
_ = d.Set("boot_type", server.BootType)
578-
if server.Bootscript != nil {
579-
_ = d.Set("bootscript_id", server.Bootscript.ID)
578+
if server.Bootscript != nil { //nolint:staticcheck
579+
_ = d.Set("bootscript_id", server.Bootscript.ID) //nolint:staticcheck
580580
}
581581
_ = d.Set("type", server.CommercialType)
582582
if len(server.Tags) > 0 {

internal/services/instance/servers_data_source.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ func DataSourceInstanceServersRead(ctx context.Context, d *schema.ResourceData,
183183
rawServer["zone"] = string(zone)
184184
rawServer["name"] = server.Name
185185
rawServer["boot_type"] = server.BootType
186-
if server.Bootscript != nil {
187-
rawServer["bootscript_id"] = server.Bootscript.ID
186+
if server.Bootscript != nil { //nolint:staticcheck
187+
rawServer["bootscript_id"] = server.Bootscript.ID //nolint:staticcheck
188188
}
189189
rawServer["type"] = server.CommercialType
190190
if len(server.Tags) > 0 {

internal/services/instance/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func flattenImageExtraVolumes(volumes map[string]*instance.Volume, zone scw.Zone
6666
volumeFlat := map[string]interface{}{
6767
"id": zonal.NewIDString(zone, volume.ID),
6868
"name": volume.Name,
69-
"export_uri": volume.ExportURI,
69+
"export_uri": volume.ExportURI, //nolint:staticcheck
7070
"size": volume.Size,
7171
"volume_type": volume.VolumeType,
7272
"creation_date": volume.CreationDate,

internal/services/tem/domain.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func ResourceDomainRead(ctx context.Context, d *schema.ResourceData, m interface
226226
_ = d.Set("next_check_at", types.FlattenTime(domain.NextCheckAt))
227227
_ = d.Set("last_valid_at", types.FlattenTime(domain.LastValidAt))
228228
_ = d.Set("revoked_at", types.FlattenTime(domain.RevokedAt))
229-
_ = d.Set("last_error", domain.LastError)
229+
_ = d.Set("last_error", domain.LastError) //nolint:staticcheck
230230
_ = d.Set("spf_config", domain.SpfConfig)
231231
_ = d.Set("dkim_config", domain.DkimConfig)
232232
_ = d.Set("dmarc_name", domain.Records.Dmarc.Name)

0 commit comments

Comments
 (0)