Skip to content

Commit 9b167b2

Browse files
authored
Merge pull request #22 from sparkfabrik/platform/3833_fix_parent_group
refs platform/#3833: Update parent group data…
2 parents 505d0ac + f9ce81a commit 9b167b2

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)