Skip to content

Commit

Permalink
Format release candidate [skip ci] (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Mar 5, 2024
1 parent ff9a08b commit 24a8b64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0-rc.2
0.1.0-rc.3
2 changes: 1 addition & 1 deletion internal/gen-template/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
locals {
tls = startswith(lower(var.url), "https:")
slashSplit = split("/", var.url)
isIpV6HostWithPort = length(split("]", local.slashSplit[2])) == 2
isIpV6HostWithPort = length(split("]", local.slashSplit[2])) == 2
isIpV6NoPort = local.isIpV6HostWithPort ? false : length(split(":", local.slashSplit[2])) > 2
address = local.isIpV6NoPort ? join(local.slashSplit[2], ["[", "]"]) : local.slashSplit[2]
hostPortSplit = local.isIpV6HostWithPort || local.isIpV6NoPort ? split("]:", trimprefix(local.address, "[")) : split(":", local.address)
Expand Down

0 comments on commit 24a8b64

Please sign in to comment.