Skip to content

Commit

Permalink
Fix pages_domain module for domain on root
Browse files Browse the repository at this point in the history
  • Loading branch information
Taucher2003 committed May 3, 2024
1 parent d5b8bbf commit 2464a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gitlab/pages_domain/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ resource "gitlab_pages_domain" "this" {

//noinspection HILUnresolvedReference
resource "cloudflare_record" "gitlab_pages_verification" {
name = "_gitlab-pages-verification-code.${var.cloudflare_domain_name}"
name = "_gitlab-pages-verification-code${var.cloudflare_domain_name == "@" ? "" : format(".%s", var.cloudflare_domain_name)}"
type = "TXT"
zone_id = var.cloudflare_zone_id
value = gitlab_pages_domain.this.verification_code
Expand Down

0 comments on commit 2464a34

Please sign in to comment.