From 2b7e57a4b6b9dd7482ff6f919fd7a852a4ca2d71 Mon Sep 17 00:00:00 2001 From: Leos Stejskal Date: Tue, 21 Jan 2025 14:01:46 +0100 Subject: [PATCH] Fixes #38153 - Show host's IPv6 in the 'host built' mail --- app/views/host_mailer/host_built.html.erb | 6 +++++- app/views/host_mailer/host_built.text.erb | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/host_mailer/host_built.html.erb b/app/views/host_mailer/host_built.html.erb index 5133410f140..829eab57ab6 100644 --- a/app/views/host_mailer/host_built.html.erb +++ b/app/views/host_mailer/host_built.html.erb @@ -6,8 +6,12 @@ <%= link_to @host, host_url(:id => @host) %> - <%= _("IP") %> + <%= _("IPv4") %> <%= @host.ip %> + + <%= _("IPv6") %> + <%= @host.ip6 %> + diff --git a/app/views/host_mailer/host_built.text.erb b/app/views/host_mailer/host_built.text.erb index e7e0ae515d9..e493cd7a503 100644 --- a/app/views/host_mailer/host_built.text.erb +++ b/app/views/host_mailer/host_built.text.erb @@ -2,7 +2,8 @@ <%= _("Your host has finished building:") %> <%= _("Hostname:") %> <%= @host.fqdn %> - <%= _("IP:") %> <%= @host.ip %> + <%= _("IPv4:") %> <%= @host.ip %> + <%= _("IPv6:") %> <%= @host.ip6 %> <%= _("View in Foreman:") %> <%= host_url(:id => @host) %>