Skip to content

Commit

Permalink
Add support for GitLab Community Edition
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfontaine committed May 24, 2024
1 parent bf99b1d commit 7624458
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spacemk/exporters/terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ def find_workspace(data: dict, workspace_id: str) -> dict:

return data

def _map_stacks_data(self, src_data: dict) -> dict:
def _map_stacks_data(self, src_data: dict) -> dict: # noqa: PLR0912
def find_workspace_variable_with_invalid_name(data: dict, workspace_id: str, type_: str = "plain") -> dict:
prog = re.compile("^[a-zA-Z_]+[a-zA-Z0-9_]*$")
variables = []
Expand Down Expand Up @@ -1268,6 +1268,8 @@ def find_workspace_variable_with_invalid_name(data: dict, workspace_id: str, typ
provider = "bitbucket_datacenter"
elif provider in ["github", "github_app", "github_enterprise"]:
provider = "github_custom"
elif provider == "gitlab_community_edition":
provider = "gitlab"
else:
raise ValueError(f"Unknown VCS provider name ({provider})")

Expand Down

0 comments on commit 7624458

Please sign in to comment.