Skip to content

Commit 951aef6

Browse files
fix
1 parent 14d3028 commit 951aef6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ resource "gitlab_project" "project" {
9797
}
9898

9999
resource "gitlab_project_membership" "project" {
100-
count = var.autoassign_current_user_as_maintainer ? 1 : 0
100+
count = var.assign_current_user_as_maintainer ? 1 : 0
101101
project = local.project_id
102102
user_id = data.gitlab_current_user.this.id
103103
access_level = "maintainer"

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ variable "create_default_pod_anti_affinity" {
156156
default = true
157157
}
158158

159-
variable "autoassign_current_user_as_maintainer" {
160-
description = "Automatically assign the current GitLab user (from the GitLab provider) as a maintainer of the created project. This is useful to ensure that the user has rights to commit and push the GitLab Agent configuration file."
159+
variable "assign_current_user_as_maintainer" {
160+
description = "Assign the current GitLab user (from the GitLab provider) as a maintainer of the created project. This is useful to ensure that the user has rights to commit and push the GitLab Agent configuration file."
161161
type = bool
162162
default = false
163163
}

0 commit comments

Comments
 (0)