Skip to content

Commit

Permalink
Add IPv6 to the mailer
Browse files Browse the repository at this point in the history
  • Loading branch information
stejskalleos committed Jan 21, 2025
1 parent fd64b8a commit d176cd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/views/discovered_mailer/_discovered_host.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
<%= link_to host, discovered_host_url(:id => host, :host => @url.host, :port => @url.port, :only_path => false, :protocol => @url.scheme) %>
</td>
<td style="<%= td_style%>"><%= host.try(:hardware_model_name) || 'N/A' %></td>
<% if host.ip %>
<td style="<%= td_style%>"><%= host.ip %></td>
<% end %>
<% if host.ip6 %>
<td style="<%= td_style%>"><%= host.ip6 %></td>
<% end %>
<td style="<%= td_style%>"><%= discovery_attribute(host, :cpu_count) %></td>
<td style="<%= td_style%>"><%= number_to_human_size(discovery_attribute(host, :memory, 0) * 1024 * 1024) %></td>
<td style="<%= td_style%>"><%= discovery_attribute(host, :disk_count) %></td>
Expand Down

0 comments on commit d176cd7

Please sign in to comment.