Skip to content

Commit

Permalink
Merge pull request #1609 from MaysaMacedo/display_hosts_on_physical_i…
Browse files Browse the repository at this point in the history
…nfra_topology

Fix display of hosts on physical infra topology
  • Loading branch information
mzazrivec committed Jun 27, 2017
2 parents 91ccea0 + 1e147e7 commit 4f182a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/services/physical_infra_topology_service.rb
Expand Up @@ -14,6 +14,14 @@ class PhysicalInfraTopologyService < TopologyService

@kinds = %i(PhysicalInfraManager PhysicalServer Host Vm Tag)

def entity_type(entity)
if entity.kind_of?(Host)
entity.class.base_class.name.demodulize
else
super
end
end

def entity_display_type(entity)
if entity.kind_of?(ManageIQ::Providers::PhysicalInfraManager)
entity.class.short_token
Expand Down

0 comments on commit 4f182a8

Please sign in to comment.