Skip to content

Commit

Permalink
wip:fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
oarbusi committed Dec 5, 2024
1 parent fcca7cd commit 990d88c
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions internal/service/advancedcluster/data_source_advanced_clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,16 +330,9 @@ func flattenAdvancedClusters(ctx context.Context, connV220240530 *admin20240530.

var replicationSpecs []map[string]any

if !useReplicationSpecPerShard {
replicationSpecs, err = FlattenAdvancedReplicationSpecsOldShardingConfig(ctx, cluster.GetReplicationSpecs(), zoneNameToOldReplicationSpecMeta, d.Get("replication_specs").([]any), d, connV2)
if err != nil {
log.Printf("[WARN] Error setting `replication_specs` for the cluster(%s): %s", cluster.GetId(), err)
}
} else {
replicationSpecs, err = flattenAdvancedReplicationSpecsDS(ctx, cluster.GetReplicationSpecs(), zoneNameToOldReplicationSpecMeta, d, connV2)
if err != nil {
log.Printf("[WARN] Error setting `replication_specs` for the cluster(%s): %s", cluster.GetId(), err)
}
replicationSpecs, err = flattenAdvancedReplicationSpecsDS(ctx, cluster.GetReplicationSpecs(), zoneNameToOldReplicationSpecMeta, d, connV2)
if err != nil {
log.Printf("[WARN] Error setting `replication_specs` for the cluster(%s): %s", cluster.GetId(), err)
}

result := map[string]any{
Expand Down

0 comments on commit 990d88c

Please sign in to comment.