Skip to content

Commit 51d76bb

Browse files
joli-sysjindraj
authored andcommitted
gitlab_project_id keep backward compatibility
1 parent dcf281b commit 51d76bb

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

deploy.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ module "gitlab" {
4747
source = "./modules/gitlab"
4848

4949
gitlab_project_ids = var.gitlab_project_ids
50+
gitlab_project_id = var.gitlab_project_id
5051
gitlab_environment = var.gitlab_environment
5152

5253
aws_s3_bucket_name = module.s3_bucket.s3_bucket_id

modules/gitlab/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ variable "gitlab_project_ids" {
55
variable "gitlab_project_id" {
66
type = string
77
description = "Deprecated: Use gitlab_project_ids instead"
8-
default = null
8+
default = ""
99
}
1010

1111
variable "gitlab_environment" {

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ variable "gitlab_project_ids" {
2828
default = []
2929
}
3030

31+
variable "gitlab_project_id" {
32+
type = string
33+
description = "Deprecated: Use gitlab_project_ids instead"
34+
default = ""
35+
}
36+
3137
variable "gitlab_environment" {
3238
description = "GitLab environment name"
3339
type = string

0 commit comments

Comments
 (0)