Skip to content

Commit 7039f9e

Browse files
committed
chore: minor renaming
1 parent 5dec67d commit 7039f9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

provider/datasource_rediscloud_active_active_database.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func dataSourceRedisCloudActiveActiveDatabaseRead(ctx context.Context, d *schema
367367
return diag.FromErr(err)
368368
}
369369

370-
if dbTlsCertificate, err := setCertificateData(ctx, api, subId, dbId); err != nil {
370+
if dbTlsCertificate, err := getCertificateData(ctx, api, subId, dbId); err != nil {
371371
return diag.FromErr(err)
372372
} else if dbTlsCertificate != nil {
373373
if err := d.Set("tls_certificate", dbTlsCertificate); err != nil {
@@ -378,7 +378,7 @@ func dataSourceRedisCloudActiveActiveDatabaseRead(ctx context.Context, d *schema
378378
return diags
379379
}
380380

381-
func setCertificateData(ctx context.Context, api *apiClient, subId int, dbId int) (*databases.DatabaseCertificate, error) {
381+
func getCertificateData(ctx context.Context, api *apiClient, subId int, dbId int) (*databases.DatabaseCertificate, error) {
382382
dbTlsCertificate, err := api.client.Database.GetCertificate(ctx, subId, dbId)
383383

384384
if err != nil {

0 commit comments

Comments
 (0)