Skip to content

Commit

Permalink
feat: warn on modules when gitlab or ado was discovered
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollorion committed Oct 24, 2024
1 parent 2adde52 commit 560a88e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spacemk/exporters/terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1411,8 +1411,12 @@ def _map_modules_data(self, src_data: dict) -> dict:

vcs_provider = "github_custom"
if self.is_gitlab:
logging.warning("GitLab VCS provider detected while exporting workspaces."
"Modules will be mapped as GitLab.")
vcs_provider = "gitlab"
if self.is_ado:
logging.warning("Azure DevOps VCS provider detected while exporting workspaces."
"Modules will be mapped as Azure DevOps.")
vcs_provider = "azure_devops"

data = []
Expand Down

0 comments on commit 560a88e

Please sign in to comment.