Project

General

Profile

« Previous | Next » 

Revision 66a9a696

Added by Ohad Levy almost 12 years ago

  • ID 66a9a696441aa186ed649c39e4a88acea983c8f7

refs #1586 - ensures that hostgroup hierarchy order is processed correctly

View differences:

app/models/hostgroup.rb
private
def nested_root_pw
ancestors.each do |a|
Hostgroup.sort_by_ancestry(ancestors).reverse.each do |a|
return a.root_pass unless a.root_pass.blank?
end
nil

Also available in: Unified diff