Skip to content

Commit 7e30910

Browse files
fix: review
1 parent 45a4246 commit 7e30910

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

main.tf

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ locals {
5656
# Gitlab resources
5757
data "gitlab_current_user" "this" {}
5858

59-
data "gitlab_user" "this" {
60-
username = data.gitlab_current_user.this.username
61-
}
62-
6359
data "gitlab_metadata" "this" {}
6460

6561
data "gitlab_project" "this" {
@@ -98,7 +94,7 @@ resource "gitlab_project" "project" {
9894
resource "gitlab_project_membership" "project" {
9995
count = var.autoassign_current_user_as_maintainer ? 1 : 0
10096
project = local.project_id
101-
user_id = data.gitlab_user.this.id
97+
user_id = data.gitlab_current_user.this.id
10298
access_level = "maintainer"
10399
}
104100

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ variable "create_default_pod_anti_affinity" {
157157
}
158158

159159
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."
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."
161161
type = bool
162162
default = true
163163
}

0 commit comments

Comments
 (0)