Skip to content

Commit

Permalink
Add validation for cloud_networks and subnets
Browse files Browse the repository at this point in the history
  • Loading branch information
andyvesel committed Oct 5, 2018
1 parent c35123b commit 86cc42f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/helpers/host_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ def textual_group_properties
end

def textual_group_relationships
additions = []
additions.push(:cloud_networks) if @record.respond_to?(:cloud_networks)
additions.push(:cloud_subnets) if @record.respond_to?(:cloud_subnets)
TextualGroup.new(
_("Relationships"),
%i(
ems cluster availability_zone used_tenants storages resource_pools vms templates drift_history
physical_server network_manager custom_button_events cloud_networks cloud_subnets
)
physical_server network_manager custom_button_events
) + additions
)
end

Expand Down

0 comments on commit 86cc42f

Please sign in to comment.