Skip to content

Commit 8ab74b4

Browse files
committed
revert search and replace error from long ago
1 parent 1f9e669 commit 8ab74b4

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

internal/services/instance/server.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func ResourceServer() *schema.Resource {
7474
"type": {
7575
Type: schema.TypeString,
7676
Required: true,
77-
Description: "The instanceSDK type of the server", // TODO: link to scaleway pricing in the doc
77+
Description: "The instance type of the server", // TODO: link to scaleway pricing in the doc
7878
DiffSuppressFunc: dsf.IgnoreCase,
7979
},
8080
"protected": {
@@ -158,7 +158,7 @@ func ResourceServer() *schema.Resource {
158158
Type: schema.TypeBool,
159159
Optional: true,
160160
Default: true,
161-
Description: "Force deletion of the root volume on instanceSDK termination",
161+
Description: "Force deletion of the root volume on instance termination",
162162
},
163163
"boot": {
164164
Type: schema.TypeBool,
@@ -271,7 +271,7 @@ func ResourceServer() *schema.Resource {
271271
Type: schema.TypeList,
272272
Optional: true,
273273
MaxItems: 8,
274-
Description: "List of private network to connect with your instanceSDK",
274+
Description: "List of private network to connect with your instance",
275275
Elem: &schema.Resource{
276276
Timeouts: &schema.ResourceTimeout{
277277
Default: schema.DefaultTimeout(defaultInstancePrivateNICWaitTimeout),
@@ -308,7 +308,7 @@ func ResourceServer() *schema.Resource {
308308
Type: schema.TypeList,
309309
Optional: true,
310310
Computed: true,
311-
Description: "List of public IPs attached to your instanceSDK",
311+
Description: "List of private IPv4 and IPv6 addresses attached to your instance",
312312
Elem: &schema.Resource{
313313
Schema: map[string]*schema.Schema{
314314
"id": {
@@ -940,7 +940,7 @@ func ResourceInstanceServerUpdate(ctx context.Context, d *schema.ResourceData, m
940940
updateRequest.PlacementGroup = &instanceSDK.NullableStringValue{Null: true}
941941
} else {
942942
if !isStopped {
943-
return diag.FromErr(errors.New("instanceSDK must be stopped to change placement group"))
943+
return diag.FromErr(errors.New("instance must be stopped to change placement group"))
944944
}
945945

946946
updateRequest.PlacementGroup = &instanceSDK.NullableStringValue{Value: placementGroupID}
@@ -1017,7 +1017,7 @@ func ResourceInstanceServerUpdate(ctx context.Context, d *schema.ResourceData, m
10171017
if !isStopped {
10181018
warnings = append(warnings, diag.Diagnostic{
10191019
Severity: diag.Warning,
1020-
Summary: "instanceSDK may need to be rebooted to use the new boot type",
1020+
Summary: "instance may need to be rebooted to use the new boot type",
10211021
})
10221022
}
10231023
}
@@ -1041,7 +1041,7 @@ func ResourceInstanceServerUpdate(ctx context.Context, d *schema.ResourceData, m
10411041
if !isStopped && d.HasChange("user_data.cloud-init") {
10421042
warnings = append(warnings, diag.Diagnostic{
10431043
Severity: diag.Warning,
1044-
Summary: "instanceSDK may need to be rebooted to use the new cloud init config",
1044+
Summary: "instance may need to be rebooted to use the new cloud init config",
10451045
})
10461046
}
10471047
}
@@ -1175,7 +1175,7 @@ func ResourceInstanceServerDelete(ctx context.Context, d *schema.ResourceData, m
11751175
ServerID: id,
11761176
})
11771177
if err != nil {
1178-
log.Print("[WARN] Failed remove server from instanceSDK group")
1178+
log.Print("[WARN] Failed remove server from instance group")
11791179
}
11801180
}
11811181
// reach stopped state

internal/services/instance/testfuncs/sweep.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func testSweepServer(_ string) error {
102102
return acctest.SweepZones(scw.AllZones, func(scwClient *scw.Client, zone scw.Zone) error {
103103
instanceAPI := instanceSDK.NewAPI(scwClient)
104104

105-
logging.L.Debugf("sweeper: destroying the instanceSDK server in (%s)", zone)
105+
logging.L.Debugf("sweeper: destroying the instance server in (%s)", zone)
106106

107107
listServers, err := instanceAPI.ListServers(&instanceSDK.ListServersRequest{Zone: zone}, scw.WithAllPages())
108108
if err != nil {

0 commit comments

Comments
 (0)