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

Displayed number of relationships between Hosts and Physical Server #1458

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/helpers/ems_physical_infra_helper/textual_summary.rb
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ def textual_group_properties
def textual_group_relationships
TextualGroup.new(
_("Relationships"),
%i(physical_servers datastores vms)
%i(physical_servers datastores vms hosts)
)
end

@@ -62,6 +62,11 @@ def textual_physical_servers
h
end

def textual_hosts
count_of_host_relationships = (@record.physical_servers.select { |server| !server.host.nil? }).length
{:label => _("Hosts"), :icon => "pficon pficon-screen", :value => count_of_host_relationships}
end

def textual_guid
{:label => _("Management Engine GUID"), :value => @record.guid}
end