From 86da45d5517b1cfc9bc14be5194e4ea411b2af9f Mon Sep 17 00:00:00 2001 From: badra001 Date: Fri, 8 Nov 2024 11:14:41 -0500 Subject: [PATCH] fix check --- tags/tags.legacy.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tags/tags.legacy.tf b/tags/tags.legacy.tf index 4168fcb..1d9c466 100644 --- a/tags/tags.legacy.tf +++ b/tags/tags.legacy.tf @@ -16,7 +16,7 @@ resource "terraform_data" "legacy_finops_number" { lifecycle { precondition { - condition = length(regexall("^fs\\d{10}$",lookup(local.legacy_finops_converted,"project_number",null))) == 0 + condition = length(regexall("^fs\\d{10}$",local.legacy_finops_converted["project_number"])) > 0 error_message = "Invalid legacy finops project_number format." } }