Skip to content

Commit

Permalink
Show VM's MAC address in textual summary
Browse files Browse the repository at this point in the history
  • Loading branch information
mzazrivec committed Jun 9, 2017
1 parent deef2b6 commit a228d7d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/helpers/vm_helper/textual_summary.rb
Expand Up @@ -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
)
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit a228d7d

Please sign in to comment.