Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 2d92906

Browse files
authored
fix: Outputs for pool need to account for complexity (#1970)
* fix: outputs for pool need to account for complexity As the pool is optional the output needs to take this into account and access the first instance in the list. We also must output null if not set. * Ensure pool role is output from main module
1 parent cc992ae commit 2d92906

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

modules/runners/outputs.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ output "role_scale_down" {
2323
}
2424

2525
output "role_pool" {
26-
value = length(var.pool_config) == 0 ? {} : module.pool.role_pool
26+
value = length(var.pool_config) == 0 ? null : module.pool[0].role_pool
2727
}

outputs.tf

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ output "runners" {
99
role_runner = module.runners.role_runner
1010
role_scale_up = module.runners.role_scale_up
1111
role_scale_down = module.runners.role_scale_down
12+
role_pool = module.runners.role_pool
1213
}
1314
}
1415

0 commit comments

Comments
 (0)