From 08fa40f3d38938b42fc6fbfc83da5168009e0915 Mon Sep 17 00:00:00 2001 From: Matthias Kay Date: Mon, 9 May 2022 04:16:49 +0200 Subject: [PATCH] fix: join the volumes with \n instead of , --- .pre-commit-config.yaml | 4 ++-- main.tf | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4075e0f19..bba865149 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - - repo: git://github.com/antonbabenko/pre-commit-terraform + - repo: https://github.com/antonbabenko/pre-commit-terraform rev: v1.64.1 hooks: - id: terraform_fmt args: - --args=-recursive - id: terraform_tflint - - repo: git://github.com/pre-commit/pre-commit-hooks + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.2.0 hooks: - id: check-merge-conflict diff --git a/main.tf b/main.tf index de9133a70..68448ca8f 100644 --- a/main.tf +++ b/main.tf @@ -126,8 +126,8 @@ locals { runners_request_concurrency = var.runners_request_concurrency runners_output_limit = var.runners_output_limit runners_check_interval = var.runners_check_interval - runners_volumes_tmpfs = join(",", [for v in var.runners_volumes_tmpfs : format("\"%s\" = \"%s\"", v.volume, v.options)]) - runners_services_volumes_tmpfs = join(",", [for v in var.runners_services_volumes_tmpfs : format("\"%s\" = \"%s\"", v.volume, v.options)]) + runners_volumes_tmpfs = join("\n", [for v in var.runners_volumes_tmpfs : format("\"%s\" = \"%s\"", v.volume, v.options)]) + runners_services_volumes_tmpfs = join("\n", [for v in var.runners_services_volumes_tmpfs : format("\"%s\" = \"%s\"", v.volume, v.options)]) bucket_name = local.bucket_name shared_cache = var.cache_shared sentry_dsn = var.sentry_dsn @@ -503,4 +503,4 @@ module "terminate_instances_lifecycle_function" { role_permissions_boundary = var.permissions_boundary == "" ? null : "${var.arn_format}:iam::${data.aws_caller_identity.current.account_id}:policy/${var.permissions_boundary}" lambda_timeout = var.asg_terminate_lifecycle_lambda_timeout tags = local.tags -} \ No newline at end of file +}