Skip to content

Commit

Permalink
feat: fix version during data check:
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollorion committed Aug 2, 2024
1 parent f2e2161 commit b7f7a54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spacemk/exporters/terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b7f7a54

Please sign in to comment.