Skip to content

Commit 12433b7

Browse files
authored
allow 0 (#2456)
1 parent 9831293 commit 12433b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/service/advancedcluster/resource_advanced_cluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ func resourceCreate(ctx context.Context, d *schema.ResourceData, meta any) diag.
420420

421421
// Validate oplog_size_mb to show the error before the cluster is created.
422422
if oplogSizeMB, ok := d.GetOkExists("advanced_configuration.0.oplog_size_mb"); ok {
423-
if cast.ToInt64(oplogSizeMB) <= 0 {
424-
return diag.FromErr(fmt.Errorf("`advanced_configuration.oplog_size_mb` cannot be <= 0"))
423+
if cast.ToInt64(oplogSizeMB) < 0 {
424+
return diag.FromErr(fmt.Errorf("`advanced_configuration.oplog_size_mb` cannot be < 0"))
425425
}
426426
}
427427

0 commit comments

Comments
 (0)