Skip to content

Commit

Permalink
feat: only warn once
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollorion committed Oct 25, 2024
1 parent 6182c03 commit 6446128
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spacemk/exporters/terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1410,13 +1410,13 @@ def _map_modules_data(self, src_data: dict) -> dict:
logging.info("Start mapping modules data")

vcs_provider = "github_custom"
if self.is_gitlab:
if self.is_gitlab and not self.is_ado:
logging.warning("GitLab VCS provider detected while exporting workspaces."
"Modules will be mapped as GitLab.")
" 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.")
" Modules will be mapped as Azure DevOps.")
vcs_provider = "azure_devops"

data = []
Expand Down

0 comments on commit 6446128

Please sign in to comment.