From b7f7a54bbba0357d1d73acdac5568267f321c396 Mon Sep 17 00:00:00 2001 From: apollorion Date: Fri, 2 Aug 2024 16:33:47 -0400 Subject: [PATCH] feat: fix version during data check: --- spacemk/exporters/terraform.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacemk/exporters/terraform.py b/spacemk/exporters/terraform.py index 56ceb23..2bd08a6 100644 --- a/spacemk/exporters/terraform.py +++ b/spacemk/exporters/terraform.py @@ -186,7 +186,8 @@ def _check_workspaces_data(self, data: list[dict]) -> list[dict]: if item.get("attributes.vcs-repo.service-provider") is None: warnings.append("No VCS configuration") - if semver.match(item.get("attributes.terraform-version"), ">=1.5.7"): + terraform_version = item.get("attributes.terraform-version") + if terraform_version == "latest" or semver.match(terraform_version, ">=1.5.7"): warnings.append("BSL Terraform version") data[key]["warnings"] = ", ".join(warnings)