We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb2638c commit 3f20e65Copy full SHA for 3f20e65
modules/gitlab/main.tf
@@ -1,5 +1,9 @@
1
+locals {
2
+ gitlab_project_ids = toset(concat(var.gitlab_project_ids, var.gitlab_project_id != null ? [var.gitlab_project_id] : []))
3
+}
4
+
5
data "gitlab_project" "this" {
- for_each = toset(var.gitlab_project_ids)
6
+ for_each = local.gitlab_project_ids
7
id = each.value
8
}
9
modules/gitlab/variables.tf
@@ -2,6 +2,12 @@ variable "gitlab_project_ids" {
type = list(string)
+variable "gitlab_project_id" {
+ type = string
+ description = "Deprecated: Use gitlab_project_ids instead"
+ default = null
10
11
variable "gitlab_environment" {
12
type = string
13
default = "*"
0 commit comments