Skip to content

Commit

Permalink
fix: fixed the kafka_brokers_sasl output (#341)
Browse files Browse the repository at this point in the history
Co-authored-by: Conall Ó Cofaigh <ocofaigh@ie.ibm.com>
  • Loading branch information
JunliWang and ocofaigh authored Nov 19, 2024
1 parent 8532c3f commit 59754d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ output "guid" {

output "kafka_brokers_sasl" {
description = "(Array of Strings) Kafka brokers use for interacting with Kafka native API"
value = lookup(ibm_resource_instance.es_instance.extensions, "kafka_brokers_sasl", null)
value = [
for i in range(tonumber(ibm_resource_instance.es_instance.extensions["kafka_brokers_sasl.#"])) :
ibm_resource_instance.es_instance.extensions["kafka_brokers_sasl.${i}"]
]
}

output "kafka_http_url" {
Expand Down

0 comments on commit 59754d9

Please sign in to comment.