Skip to content

Commit 11166f5

Browse files
committed
Fixed syntax constructing linuxParameters.
1 parent 60315f3 commit 11166f5

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.24 (Aug 19, 2025)
2+
* Fixed syntax constructing `linuxParameters`.
3+
14
# 0.3.23 (Aug 19, 2025)
25
* Fixed syntax constructing `linuxParameters`.
36

linux_params.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
locals {
22
all_kernel_cap_add = [for kc in lookup(local.capabilities, "cap_add", []) : try(kc.name, "")]
33
kernel_cap_add = length(local.all_kernel_cap_add) > 0 ? coalescelist(local.all_kernel_cap_add) : []
4-
kernal_cap_linux_params = length(local.kernel_cap_add) > 0 ? [{
4+
kernal_cap_linux_params = length(local.kernel_cap_add) < 1 ? [] : [{
55
capabilities = {
66
add = local.kernel_cap_add
77
drop = []
88
}
9-
}] : null
9+
}]
1010
}
1111

1212
locals {

0 commit comments

Comments
 (0)