Skip to content

Commit

Permalink
Merge pull request #4736 from andyvesel/validation_for_cloud_networks…
Browse files Browse the repository at this point in the history
…_subnets

Add validation for cloud_networks and subnets

(cherry picked from commit 737c42f)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1635126
  • Loading branch information
mzazrivec authored and simaishi committed Oct 8, 2018
1 parent a66142b commit c4d2baf
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 c4d2baf

Please sign in to comment.