Skip to content

Commit 60315f3

Browse files
committed
Fixed syntax constructing linuxParameters.
1 parent 3fdd6ff commit 60315f3

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.3.23 (Aug 19, 2025)
2+
* Fixed syntax constructing `linuxParameters`.
3+
14
# 0.3.22 (Aug 19, 2025)
25
* Fixed kernel capabilities included in `linuxParameters`.
36

linux_params.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ locals {
1212
locals {
1313
cap_linux_params = [for cp in local.cap_modules : lookup(cp.outputs, "linux_parameters", [])]
1414
special_linux_params = local.kernal_cap_linux_params
15-
all_linux_params = concat(local.cap_linux_params, local.special_linux_params)
16-
linux_params = length(local.all_linux_params) > 0 ? merge(local.all_linux_params...) : null
15+
all_linux_params = flatten(concat(local.cap_linux_params, local.special_linux_params))
16+
linux_params = length(local.all_linux_params) > 0 ? merge([for lp in local.all_linux_params : lp]...) : null
1717
}

0 commit comments

Comments
 (0)