Skip to content

Commit

Permalink
TEMPORARY - remove DataProcessRegion to make it compile and run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lantoli committed Jan 12, 2024
1 parent 2587fb3 commit 404512e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions internal/service/onlinearchive/resource_online_archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,15 +466,6 @@ func resourceMongoDBAtlasOnlineArchiveUpdate(ctx context.Context, d *schema.Reso
}
}

if dataProcessRegionHasChange {
newDataProcessRegion := mapDataProcessRegion(d)
if newDataProcessRegion == nil {
request.DataProcessRegion = &admin.DataProcessRegion{}
} else {
request.DataProcessRegion = newDataProcessRegion
}
}

if scheduleHasChange {
request.Schedule = mapSchedule(d)
}
Expand Down Expand Up @@ -559,15 +550,6 @@ func fromOnlineArchiveToMap(in *admin.BackupOnlineArchive) map[string]any {
schemaVals["data_expiration_rule"] = []any{dataExpirationRule}
}

var dataProcessRegion map[string]any
if in.DataProcessRegion != nil && (in.DataProcessRegion.CloudProvider != nil || in.DataProcessRegion.Region != nil) {
dataProcessRegion = map[string]any{
"cloud_provider": in.DataProcessRegion.CloudProvider,
"region": in.DataProcessRegion.Region,
}
schemaVals["data_process_region"] = []any{dataProcessRegion}
}

partitionFields := conversion.SlicePtrToSlice(in.PartitionFields)
if len(partitionFields) == 0 {
return schemaVals
Expand Down

0 comments on commit 404512e

Please sign in to comment.