Skip to content

Commit

Permalink
fixes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Oct 6, 2016
1 parent 94ddfbb commit 587aa90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/include/dhcp-server/dialogs.rb
Expand Up @@ -385,15 +385,15 @@ def SectionTypeChoose
par_id = Ops.get(par, "id", "")
end
possible = ["subnet", "host", "shared-network", "group", "pool", "class"]
if ["class", "host", "pool"].include?(parents)
# leaf nodes means, that we do not add anything below it
if !(["class", "host", "pool"] & parents).empty?
return :back
end
filtered = ["pool"]
if parents.include?("subnet")
filtered.delete("pool")
filtered << "subnet"
filtered << "shared-network"
filtered << "shared-network"
end
if parents.include?("shared-network")
filtered << "shared-network"
Expand Down

0 comments on commit 587aa90

Please sign in to comment.