Revision cc41bb66
Added by Sam Kottler over 11 years ago
- ID cc41bb66f5f99850efb0a0da50686f0015da2449
app/models/host.rb | ||
---|---|---|
end
|
||
|
||
def classes_from_storeconfigs
|
||
klasses = resources.all(:conditions => {:restype => "Class"}, :select => :title, :order => :title)
|
||
klasses = resources.all(:conditions => 'restype = "Class" AND title != "main" AND title != "Settings"', :select => :title, :order => :title)
|
||
klasses.map!(&:title).delete(:main)
|
||
klasses
|
||
end
|
Also available in: Unified diff
fixes #1847 Ensure main and Settings aren't shown on the puppetclasses page linked to from the host page