Skip to content

Commit 1491add

Browse files
committed
fix: lint doc
1 parent c90677c commit 1491add

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

docs/resources/rdb_snapshot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The following arguments are supported:
7272

7373
### Additional Computed Attributes
7474

75-
In addition to the arguments above, the following attributes are exported:
75+
In addition to all arguments above, the following attributes are exported:
7676

7777
- `id` - The unique ID of the snapshot.
7878
- `created_at` - The timestamp when the snapshot was created, in ISO 8601 format.

internal/services/rdb/instance.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,7 @@ func ResourceRdbInstanceCreate(ctx context.Context, d *schema.ResourceData, m in
336336
if err != nil {
337337
return diag.FromErr(err)
338338
}
339-
id := ""
340-
339+
ID := ""
341340
if regionalSnapshotID, ok := d.GetOk("snapshot_id"); ok {
342341
haCluster := d.Get("is_ha_cluster").(bool)
343342
nodeType := d.Get("node_type").(string)
@@ -375,7 +374,7 @@ func ResourceRdbInstanceCreate(ctx context.Context, d *schema.ResourceData, m in
375374
}
376375
}
377376
d.SetId(regional.NewIDString(region, res.ID))
378-
id = res.ID
377+
ID = res.ID
379378

380379
} else {
381380

@@ -433,13 +432,13 @@ func ResourceRdbInstanceCreate(ctx context.Context, d *schema.ResourceData, m in
433432
}
434433

435434
d.SetId(regional.NewIDString(region, res.ID))
436-
id = res.ID
435+
ID = res.ID
437436
}
438437

439438
mustUpdate := false
440439
updateReq := &rdb.UpdateInstanceRequest{
441440
Region: region,
442-
InstanceID: id,
441+
InstanceID: ID,
443442
}
444443
// Configure Schedule Backup
445444
// BackupScheduleFrequency and BackupScheduleRetention can only configure after instance creation
@@ -461,7 +460,7 @@ func ResourceRdbInstanceCreate(ctx context.Context, d *schema.ResourceData, m in
461460
mustUpdate = true
462461
}
463462
if mustUpdate {
464-
_, err = waitForRDBInstance(ctx, rdbAPI, region, id, d.Timeout(schema.TimeoutCreate))
463+
_, err = waitForRDBInstance(ctx, rdbAPI, region, ID, d.Timeout(schema.TimeoutCreate))
465464
if err != nil {
466465
return diag.FromErr(err)
467466
}
@@ -472,7 +471,7 @@ func ResourceRdbInstanceCreate(ctx context.Context, d *schema.ResourceData, m in
472471
}
473472
// Configure Instance settings
474473
if settings, ok := d.GetOk("settings"); ok {
475-
res, err := waitForRDBInstance(ctx, rdbAPI, region, id, d.Timeout(schema.TimeoutCreate))
474+
res, err := waitForRDBInstance(ctx, rdbAPI, region, ID, d.Timeout(schema.TimeoutCreate))
476475
if err != nil {
477476
return diag.FromErr(err)
478477
}

internal/services/rdb/instance_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ func TestAccInstance_UpdateEncryptionAtRest(t *testing.T) {
13831383
})
13841384
}
13851385

1386-
func TestAccRdbInstance_CompleteWorkflow(t *testing.T) {
1386+
func TestAccInstance_CompleteWorkflow(t *testing.T) {
13871387
tt := acctest.NewTestTools(t)
13881388
defer tt.Cleanup()
13891389

0 commit comments

Comments
 (0)