From d4a2f7a7c4401c1ae1be9cce22bf32d394c9b7bf Mon Sep 17 00:00:00 2001 From: Kevin Kelani Date: Tue, 23 Jan 2018 11:57:51 -0800 Subject: [PATCH] Remove trailing period from opsman dns outputs Signed-off-by: Ryan Moran --- outputs.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/outputs.tf b/outputs.tf index b52ca87..399ece1 100644 --- a/outputs.tf +++ b/outputs.tf @@ -3,11 +3,11 @@ output "service_account_email" { } output "ops_manager_dns" { - value = "${google_dns_record_set.ops-manager-dns.name}" + value = "${replace(google_dns_record_set.ops-manager-dns.name, "/\\.$/", "")}" } output "optional_ops_manager_dns" { - value = "${element(concat(google_dns_record_set.optional-ops-manager-dns.*.name, list("")), 0)}" + value = "${replace(element(concat(google_dns_record_set.optional-ops-manager-dns.*.name, list("")), 0), "/\\.$/", "")}" } output "sys_domain" {