@@ -3,10 +3,12 @@ package provider
33import (
44 "context"
55 "fmt"
6- "github.com/RedisLabs/terraform-provider-rediscloud/provider/client"
76
87 "github.com/RedisLabs/rediscloud-go-api/redis"
98 "github.com/RedisLabs/rediscloud-go-api/service/databases"
9+ "github.com/RedisLabs/terraform-provider-rediscloud/provider/client"
10+ "github.com/RedisLabs/terraform-provider-rediscloud/provider/pro"
11+ "github.com/RedisLabs/terraform-provider-rediscloud/provider/utils"
1012 "github.com/hashicorp/terraform-plugin-sdk/v2/diag"
1113 "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
1214)
@@ -347,7 +349,7 @@ func dataSourceRedisCloudActiveActiveDatabaseRead(ctx context.Context, d *schema
347349 if err != nil {
348350 // Forgive errors here, sometimes we just can't get a latest status
349351 } else {
350- parsedLatestBackupStatus , err := parseLatestBackupStatus (latestBackupStatus )
352+ parsedLatestBackupStatus , err := utils . ParseLatestBackupStatus (latestBackupStatus )
351353 if err != nil {
352354 return diag .FromErr (err )
353355 }
@@ -365,7 +367,7 @@ func dataSourceRedisCloudActiveActiveDatabaseRead(ctx context.Context, d *schema
365367 if err != nil {
366368 // Forgive errors here, sometimes we just can't get a latest status
367369 } else {
368- parsedLatestImportStatus , err = parseLatestImportStatus (latestImportStatus )
370+ parsedLatestImportStatus , err = utils . ParseLatestImportStatus (latestImportStatus )
369371 if err != nil {
370372 return diag .FromErr (err )
371373 }
@@ -374,7 +376,7 @@ func dataSourceRedisCloudActiveActiveDatabaseRead(ctx context.Context, d *schema
374376 return diag .FromErr (err )
375377 }
376378
377- if err := readTags (ctx , api , subId , dbId , d ); err != nil {
379+ if err := pro . ReadTags (ctx , api , subId , dbId , d ); err != nil {
378380 return diag .FromErr (err )
379381 }
380382
0 commit comments