Skip to content

Commit b3578af

Browse files
authored
chore(instance): fix deprecation for imports usage (#693)
1 parent fc8107a commit b3578af

6 files changed

+6
-6
lines changed

scaleway/resource_instance_ip_reverse_dns.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func resourceScalewayInstanceIPReverseDNS() *schema.Resource {
1616
UpdateContext: resourceScalewayInstanceIPReverseDNSUpdate,
1717
DeleteContext: resourceScalewayInstanceIPReverseDNSDelete,
1818
Importer: &schema.ResourceImporter{
19-
State: schema.ImportStatePassthrough,
19+
StateContext: schema.ImportStatePassthroughContext,
2020
},
2121
SchemaVersion: 0,
2222
Schema: map[string]*schema.Schema{

scaleway/resource_instance_placement_group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func resourceScalewayInstancePlacementGroup() *schema.Resource {
1717
UpdateContext: resourceScalewayInstancePlacementGroupUpdate,
1818
DeleteContext: resourceScalewayInstancePlacementGroupDelete,
1919
Importer: &schema.ResourceImporter{
20-
State: schema.ImportStatePassthrough,
20+
StateContext: schema.ImportStatePassthroughContext,
2121
},
2222
SchemaVersion: 0,
2323
Schema: map[string]*schema.Schema{

scaleway/resource_instance_security_group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func resourceScalewayInstanceSecurityGroup() *schema.Resource {
1919
UpdateContext: resourceScalewayInstanceSecurityGroupUpdate,
2020
DeleteContext: resourceScalewayInstanceSecurityGroupDelete,
2121
Importer: &schema.ResourceImporter{
22-
State: schema.ImportStatePassthrough,
22+
StateContext: schema.ImportStatePassthroughContext,
2323
},
2424

2525
Schema: map[string]*schema.Schema{

scaleway/resource_instance_security_group_rules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func resourceScalewayInstanceSecurityGroupRules() *schema.Resource {
1414
UpdateContext: resourceScalewayInstanceSecurityGroupRulesUpdate,
1515
DeleteContext: resourceScalewayInstanceSecurityGroupRulesDelete,
1616
Importer: &schema.ResourceImporter{
17-
State: schema.ImportStatePassthrough,
17+
StateContext: schema.ImportStatePassthroughContext,
1818
},
1919

2020
Schema: map[string]*schema.Schema{

scaleway/resource_instance_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func resourceScalewayInstanceServer() *schema.Resource {
2323
UpdateContext: resourceScalewayInstanceServerUpdate,
2424
DeleteContext: resourceScalewayInstanceServerDelete,
2525
Importer: &schema.ResourceImporter{
26-
State: schema.ImportStatePassthrough,
26+
StateContext: schema.ImportStatePassthroughContext,
2727
},
2828
SchemaVersion: 0,
2929
Schema: map[string]*schema.Schema{

scaleway/resource_instance_volume.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func resourceScalewayInstanceVolume() *schema.Resource {
1919
UpdateContext: resourceScalewayInstanceVolumeUpdate,
2020
DeleteContext: resourceScalewayInstanceVolumeDelete,
2121
Importer: &schema.ResourceImporter{
22-
State: schema.ImportStatePassthrough,
22+
StateContext: schema.ImportStatePassthroughContext,
2323
},
2424
Timeouts: &schema.ResourceTimeout{
2525
Delete: scw.TimeDurationPtr(InstanceVolumeDeleteTimeout),

0 commit comments

Comments
 (0)