Skip to content

Commit 2d60f6e

Browse files
kierramarieshemau
andauthored
fix: fixed issue with endpoint being passed to the ibm_database_connection resource (#335)
Co-authored-by: [email protected] <[email protected]> Co-authored-by: shemau <[email protected]>
1 parent cfe992c commit 2d60f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ locals {
209209
}
210210

211211
data "ibm_database_connection" "database_connection" {
212-
endpoint_type = var.endpoints
212+
endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints
213213
deployment_id = ibm_database.mongodb.id
214214
user_id = ibm_database.mongodb.adminuser
215215
user_type = "database"

0 commit comments

Comments
 (0)