Skip to content

Commit b75e0c7

Browse files
authored
fix: fixed issue with endpoint being passed to the ibm_database_connection resource (#162)
Co-authored-by: [email protected] <[email protected]>
1 parent 8642df4 commit b75e0c7

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
@@ -206,7 +206,7 @@ locals {
206206
}
207207

208208
data "ibm_database_connection" "database_connection" {
209-
endpoint_type = var.endpoints
209+
endpoint_type = var.endpoints == "public-and-private" ? "public" : var.endpoints
210210
deployment_id = ibm_database.rabbitmq_database.id
211211
user_id = ibm_database.rabbitmq_database.adminuser
212212
user_type = "database"

0 commit comments

Comments
 (0)