Project

General

Profile

« Previous | Next » 

Revision 74c11433

Added by Ohad Levy over 11 years ago

  • ID 74c114333c368aed777ac06e1a258603173b2f0b

ensures rails does not complain on migration, unsure of why its required

View differences:

app/models/host.rb
end
}
scope :with_os, where('hosts.operatingsystem_id IS NOT NULL')
scope :no_location, where(:location_id => nil)
scope :no_organization, where(:organization_id => nil)
scope :with_os, lambda { where('hosts.operatingsystem_id IS NOT NULL') }
scope :no_location, lambda { where(:location_id => nil) }
scope :no_organization, lambda { where(:organization_id => nil) }
scope :with_error, { :conditions => "(puppet_status > 0) and
( ((puppet_status >> #{BIT_NUM*METRIC.index("failed")} & #{MAX}) != 0) or

Also available in: Unified diff