chore: fall back on timestamp if file not exists
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kasper Juul Hermansen 2025-01-12 14:25:55 +01:00
parent cd84d66fc8
commit b793003532
Signed by: kjuulh
SSH Key Fingerprint: SHA256:RjXh0p7U6opxnfd3ga/Y9TCo18FYlHFdSpRIV72S/QM

View File

@ -42,7 +42,7 @@ resource "null_resource" "cloud_init_deb12_node" {
resource "null_resource" "node_caddy_template" { resource "null_resource" "node_caddy_template" {
triggers = { triggers = {
file_content = filemd5(local_file.node_caddy.filename) file_content = fileexists(local_file.node_caddy.filename) ? filemd5(local_file.node_caddy.filename) : timestamp()
} }
connection { connection {