Skip to content

Commit aea0623

Browse files
mcouto-sossegohyder
authored andcommitted
fix: operator custom cloud-init error
1 parent 51273fe commit aea0623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/operator/cloudinit.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ data "cloudinit_config" "operator" {
260260
content {
261261
# Load content from file if local path, attempt base64 decode, or use raw value
262262
content = contains(keys(part.value), "content") ? (
263-
fileexists(lookup(part.value, "content")) ? file(lookup(part.value, "content"))
263+
try(fileexists(lookup(part.value, "content")), false) ? file(lookup(part.value, "content"))
264264
: try(base64decode(lookup(part.value, "content")), lookup(part.value, "content"))
265265
) : ""
266266
content_type = lookup(part.value, "content_type", local.default_cloud_init_content_type)

0 commit comments

Comments
 (0)