From a228d7d23b11f4a32710029ed876fae32a129fb4 Mon Sep 17 00:00:00 2001 From: Milan Zazrivec Date: Fri, 9 Jun 2017 14:40:15 +0200 Subject: [PATCH] Show VM's MAC address in textual summary https://bugzilla.redhat.com/show_bug.cgi?id=1458427 --- app/helpers/vm_helper/textual_summary.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/helpers/vm_helper/textual_summary.rb b/app/helpers/vm_helper/textual_summary.rb index ad0aef06447..2451bbfcc1b 100644 --- a/app/helpers/vm_helper/textual_summary.rb +++ b/app/helpers/vm_helper/textual_summary.rb @@ -23,7 +23,7 @@ def textual_group_properties TextualGroup.new( _("Properties"), %i( - name region server description hostname ipaddress custom_1 container host_platform + name region server description hostname ipaddress mac_address custom_1 container host_platform tools_status load_balancer_health_check_state osinfo devices cpu_affinity snapshots advanced_settings resources guid storage_profile ) @@ -148,6 +148,11 @@ def textual_ipaddress h end + def textual_mac_address + macs = @record.mac_addresses + {:label => n_("MAC Address", "MAC Addresses", macs.size), :value => macs.join(", ")} + end + def textual_load_balancer_health_check_state return nil if @record.try(:load_balancer_health_check_states).blank? h = {:label => _("Load Balancer Status"),