Skip to content

Commit

Permalink
feat: fix version constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollorion committed Aug 2, 2024
1 parent b99ac72 commit 2a4b427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spacemk/exporters/terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1288,8 +1288,8 @@ def find_workspace_variable_with_invalid_name(data: dict, workspace_id: str, typ
if terraform_version == "latest":
# KLUDGE: Stick to the latest MPL-licensed Terraform version for now
terraform_version = "1.5.7"

if semver.match(workspace.get("attributes.terraform-version"), ">=1.5.7"):
terraform_workflow_tool = "TERRAFORM_FOSS"
elif semver.match(terraform_version, ">=1.5.7"):
terraform_workflow_tool = "CUSTOM"
else:
terraform_workflow_tool = "TERRAFORM_FOSS"
Expand Down

0 comments on commit 2a4b427

Please sign in to comment.