Skip to content

Commit f9ce81a

Browse files
committed
refs sparkfabrik-innovation-team/board#3833: Update parent group data source logic for project creation and auto-detection
1 parent 505d0ac commit f9ce81a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ data "gitlab_group" "root_namespace" {
6565
full_path = local.project_root_namespace
6666
}
6767

68-
# Data source for parent group when auto-detecting
68+
# Data source for parent group (used for project creation when not at root level, and for auto-detect mode)
6969
data "gitlab_group" "parent_group" {
70-
count = local.auto_detect_parent ? 1 : 0
70+
count = !var.operate_at_root_group_level && local.parent_group_path != "" ? 1 : 0
7171
full_path = local.parent_group_path
7272
}
7373

0 commit comments

Comments
 (0)