Skip to content

Commit

Permalink
fix: add missing defaults (#905)
Browse files Browse the repository at this point in the history
While checking the PR, I was not able to switch from main to the
refactory-varialbes branch for the example-default.

- fix a missing default
- add a null check in stated of a string check
  • Loading branch information
npalm authored Jul 27, 2023
1 parent 72ffe95 commit 5d23628
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ locals {
secure_parameter_store_runner_sentry_dsn = "${var.environment}-${var.runner_sentry_secure_parameter_store_name}"

# Custom names for runner agent instance, security groups, and IAM objects
name_runner_agent_instance = var.runner_instance.name_prefix == "" ? local.tags["Name"] : var.runner_instance.name_prefix
name_runner_agent_instance = var.runner_instance.name_prefix == null ? local.tags["Name"] : var.runner_instance.name_prefix
name_sg = var.security_group_prefix == "" ? local.tags["Name"] : var.security_group_prefix
name_iam_objects = var.iam_object_prefix == "" ? local.tags["Name"] : var.iam_object_prefix

Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ variable "runner_gitlab" {
certificate = optional(string, "")
registration_token = optional(string, "__REPLACED_BY_USER_DATA__")
runner_version = optional(string, "15.8.2")
url = optional(string)
url_clone = optional(string)
url = optional(string, "")
url_clone = optional(string, "")
})
}

Expand Down

0 comments on commit 5d23628

Please sign in to comment.