Skip to content

Commit

Permalink
fix: operator custom cloud-init error
Browse files Browse the repository at this point in the history
  • Loading branch information
mcouto-sossego authored and hyder committed Nov 12, 2024
1 parent 51273fe commit aea0623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/operator/cloudinit.tf
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ data "cloudinit_config" "operator" {
content {
# Load content from file if local path, attempt base64 decode, or use raw value
content = contains(keys(part.value), "content") ? (
fileexists(lookup(part.value, "content")) ? file(lookup(part.value, "content"))
try(fileexists(lookup(part.value, "content")), false) ? file(lookup(part.value, "content"))
: try(base64decode(lookup(part.value, "content")), lookup(part.value, "content"))
) : ""
content_type = lookup(part.value, "content_type", local.default_cloud_init_content_type)
Expand Down

0 comments on commit aea0623

Please sign in to comment.