Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adds new advanced_configuration.0.default_max_time_ms attribute to mongodbatlas_advanced_cluster resource and data sources #2825

Merged
merged 18 commits into from
Dec 10, 2024
Prev Previous commit
Next Next commit
minor
  • Loading branch information
maastha committed Nov 29, 2024
commit 78c5b230e03626e0a4c046061b6db54dd03ce2b6
Original file line number Diff line number Diff line change
@@ -481,7 +481,7 @@ func resourceCreate(ctx context.Context, d *schema.ResourceData, meta any) diag.
}
if _, ok := d.GetOkExists("advanced_configuration.0.default_max_time_ms"); ok {
if !IsDefaultMaxTimeMinRequiredMajorVersion(params.MongoDBMajorVersion) {
return diag.FromErr(fmt.Errorf(ErrorDefaultMaxTimeMinVersion))
return diag.FromErr(errors.New(ErrorDefaultMaxTimeMinVersion))
}
}