From 9866130719f097c8bc708707da93080c3422576e Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Mon, 24 Apr 2023 00:31:44 +0200 Subject: [PATCH] fix weird variable issue --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 65bbd27..4ceedfc 100644 --- a/main.tf +++ b/main.tf @@ -53,7 +53,7 @@ resource "null_resource" "cert" { ] postcondition { - condition = self.triggers["cert"] != "" || !var.use_host_cert + condition = data.external.cert.result["cert"] != "" || !var.use_host_cert error_message = "Error retrieving host certificate." } }