Skip to content

Commit

Permalink
Update project_url regex for new KYPO version
Browse files Browse the repository at this point in the history
  • Loading branch information
vydrazde committed Jul 23, 2024
1 parent 5322ffe commit 03a10a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
}

resource "kypo_sandbox_definition" "definition" {
url = startswith(var.project_url, "git@") ? var.project_url : replace(var.project_url, "/^(https?://)?([^/]+)/(.+?)(\\.git)?$/", "git@$2:$3.git")
url = replace(var.project_url, "/^((https?://)|(git@))?([^:/]+)[/:](.+?)(\\.git)?$/", "https://$4/$5.git")
rev = var.rev
}

Expand Down

0 comments on commit 03a10a9

Please sign in to comment.