Skip to content

Commit

Permalink
fix(mongodb): Resolve undetermined count issue in random_password res…
Browse files Browse the repository at this point in the history
…ource (#82)

* fix(mongodb-module): undeterminted count error

* fix(mongodb): resolve count issue in random_password resource
  • Loading branch information
akhil-redacre authored Sep 9, 2024
1 parent 378e999 commit e3c582f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongodbatlas/user/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ resource "mongodbatlas_database_user" "user" {
}

resource "random_password" "password" {
count = var.external_password == null ? 1 : 0
count = var.external_password != null ? 0 : 1 # Use the password based on the condition
length = 24
special = false
}
Expand Down

0 comments on commit e3c582f

Please sign in to comment.