Skip to content

Commit 753b371

Browse files
committed
renamed method as per review feedback.
1 parent 6b55b3a commit 753b371

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

internal/service/odb/cloud_exadata_infrastructure.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ func (r *resourceCloudExadataInfrastructure) Read(ctx context.Context, req resou
376376
return
377377
}
378378

379-
out, err := FindOdbExadataInfraResourceByID(ctx, conn, state.CloudExadataInfrastructureId.ValueString())
379+
out, err := FindExadataInfraResourceByID(ctx, conn, state.CloudExadataInfrastructureId.ValueString())
380380
if tfresource.NotFound(err) {
381381
resp.Diagnostics.Append(fwdiag.NewResourceNotFoundWarningDiagnostic(err))
382382
resp.State.RemoveResource(ctx)
@@ -537,7 +537,7 @@ func waitCloudExadataInfrastructureDeleted(ctx context.Context, conn *odb.Client
537537

538538
func statusCloudExadataInfrastructure(ctx context.Context, conn *odb.Client, id string) retry.StateRefreshFunc {
539539
return func() (any, string, error) {
540-
out, err := FindOdbExadataInfraResourceByID(ctx, conn, id)
540+
out, err := FindExadataInfraResourceByID(ctx, conn, id)
541541
if tfresource.NotFound(err) {
542542
return nil, "", nil
543543
}
@@ -550,7 +550,7 @@ func statusCloudExadataInfrastructure(ctx context.Context, conn *odb.Client, id
550550
}
551551
}
552552

553-
func FindOdbExadataInfraResourceByID(ctx context.Context, conn *odb.Client, id string) (*odbtypes.CloudExadataInfrastructure, error) {
553+
func FindExadataInfraResourceByID(ctx context.Context, conn *odb.Client, id string) (*odbtypes.CloudExadataInfrastructure, error) {
554554
input := odb.GetCloudExadataInfrastructureInput{
555555
CloudExadataInfrastructureId: aws.String(id),
556556
}

internal/service/odb/cloud_exadata_infrastructure_data_source.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func (d *dataSourceCloudExadataInfrastructure) Read(ctx context.Context, req dat
219219
return
220220
}
221221

222-
out, err := FindOdbExaDataInfraForDataSourceByID(ctx, conn, data.CloudExadataInfrastructureId.ValueString())
222+
out, err := FindExaDataInfraForDataSourceByID(ctx, conn, data.CloudExadataInfrastructureId.ValueString())
223223
if err != nil {
224224
resp.Diagnostics.AddError(
225225
create.ProblemStandardMessage(names.ODB, create.ErrActionReading, DSNameCloudExadataInfrastructure, data.CloudExadataInfrastructureId.String(), err),
@@ -235,7 +235,7 @@ func (d *dataSourceCloudExadataInfrastructure) Read(ctx context.Context, req dat
235235
resp.Diagnostics.Append(resp.State.Set(ctx, &data)...)
236236
}
237237

238-
func FindOdbExaDataInfraForDataSourceByID(ctx context.Context, conn *odb.Client, id string) (*odbtypes.CloudExadataInfrastructure, error) {
238+
func FindExaDataInfraForDataSourceByID(ctx context.Context, conn *odb.Client, id string) (*odbtypes.CloudExadataInfrastructure, error) {
239239
input := odb.GetCloudExadataInfrastructureInput{
240240
CloudExadataInfrastructureId: aws.String(id),
241241
}

internal/service/odb/cloud_exadata_infrastructure_data_source_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (cloudExaDataInfraDataSourceTest) testAccCheckCloudExadataInfrastructureDes
6767
if rs.Type != "aws_odb_cloud_exadata_infrastructure" {
6868
continue
6969
}
70-
_, err := tfodb.FindOdbExaDataInfraForDataSourceByID(ctx, conn, rs.Primary.ID)
70+
_, err := tfodb.FindExaDataInfraForDataSourceByID(ctx, conn, rs.Primary.ID)
7171
if tfresource.NotFound(err) {
7272
return nil
7373
}

internal/service/odb/cloud_exadata_infrastructure_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func (cloudExaDataInfraResourceTest) testAccCheckCloudExaDataInfraDestroyed(ctx
295295
if rs.Type != "aws_odb_cloud_exadata_infrastructure" {
296296
continue
297297
}
298-
_, err := tfodb.FindOdbExadataInfraResourceByID(ctx, conn, rs.Primary.ID)
298+
_, err := tfodb.FindExadataInfraResourceByID(ctx, conn, rs.Primary.ID)
299299
if tfresource.NotFound(err) {
300300
return nil
301301
}
@@ -323,7 +323,7 @@ func (cloudExaDataInfraResourceTest) testAccCheckCloudExadataInfrastructureExist
323323

324324
conn := acctest.Provider.Meta().(*conns.AWSClient).ODBClient(ctx)
325325

326-
resp, err := tfodb.FindOdbExadataInfraResourceByID(ctx, conn, rs.Primary.ID)
326+
resp, err := tfodb.FindExadataInfraResourceByID(ctx, conn, rs.Primary.ID)
327327
if err != nil {
328328
return create.Error(names.ODB, create.ErrActionCheckingExistence, tfodb.ResNameCloudExadataInfrastructure, rs.Primary.ID, err)
329329
}

0 commit comments

Comments
 (0)