Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
Allow colons in runner tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-harverson-moonpig committed Aug 1, 2019
1 parent e8493a0 commit f97efeb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tags.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ locals {
var.tags,
)

tags_string = replace(
replace(jsonencode(local.tags), "/[\\{\\}\"\\s]/", ""),
":",
",",
)
tags_string = join(",",flatten([
for key in keys(local.tags) : [ key, lookup(local.tags,key) ]
]))
}

data "null_data_source" "tags" {
Expand Down

0 comments on commit f97efeb

Please sign in to comment.