Skip to content

Commit c6d7c59

Browse files
committed
refs sparkfabrik-innovation-team/board#3833: fix namespace id
1 parent e250a93 commit c6d7c59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ data "gitlab_project" "enabled_projects" {
8686
resource "gitlab_project" "project" {
8787
count = local.use_existing_project == 0 ? 1 : 0
8888
name = var.gitlab_project_name
89-
namespace_id = data.gitlab_group.root_namespace.group_id
89+
namespace_id = var.operate_at_root_group_level ? data.gitlab_group.root_namespace.group_id : data.gitlab_group.parent_group[0].group_id
9090
}
9191

9292
resource "gitlab_cluster_agent" "this" {

0 commit comments

Comments
 (0)