Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix display of hosts on physical infra topology #1609

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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