Skip to content

Commit

Permalink
Fixing provider switches listing
Browse files Browse the repository at this point in the history
  • Loading branch information
EsdrasVP committed Jun 4, 2018
1 parent 60c8b89 commit 12de9e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/helpers/application_helper.rb
Expand Up @@ -169,7 +169,8 @@ def controller_to_model
"OsProcess" => "processes",
"scan_histories" => "scan_histories",
"based_volumes" => "based_volumes",
"PersistentVolume" => "persistent_volumes"
"PersistentVolume" => "persistent_volumes",
"PhysicalSwitch" => "physical_switches"
}.freeze

def model_to_report_data
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/ems_physical_infra_helper/textual_summary.rb
Expand Up @@ -58,7 +58,7 @@ def textual_physical_racks
end

def textual_physical_switches
textual_link(@record.physical_switches)
textual_link(@record.physical_switches, :as => PhysicalSwitch)
end

def textual_physical_servers
Expand Down
4 changes: 4 additions & 0 deletions app/views/layouts/listnav/_ems_physical_infra.html.haml
Expand Up @@ -15,6 +15,10 @@
= miq_accordion_panel(_("Relationships"), false, "ems_rel") do
%ul.nav.nav-pills.nav-stacked
%li
= li_link(:count => @record.number_of(:physical_switches),
:text => _('Physical Switches'),
:record => @record,
:display => 'physical_switches')
= li_link(:count => @record.number_of(:physical_servers),
:tables => 'physical_servers',
:record => @record,
Expand Down

0 comments on commit 12de9e7

Please sign in to comment.