Revision 1c039da8
Added by Ohad Levy almost 13 years ago
- ID 1c039da84cbbad8b07cd9b1f6e9f15bc7720e3bf
app/models/host.rb | ||
---|---|---|
}
|
||
named_scope :with_error, { :conditions => "(puppet_status > 0) and
|
||
((puppet_status >> #{Report::BIT_NUM*Report::METRIC.index("failed")} & #{Report::MAX}) != 0) or
|
||
((puppet_status >> #{Report::BIT_NUM*Report::METRIC.index("failed_restarts")} & #{Report::MAX}) != 0) or
|
||
((puppet_status >> #{Report::BIT_NUM*Report::METRIC.index("skipped")} & #{Report::MAX}) != 0)"
|
||
((puppet_status >> #{Report::BIT_NUM*Report::METRIC.index("failed_restarts")} & #{Report::MAX}) != 0)"
|
||
}
|
||
|
||
|
Also available in: Unified diff
fixes #930 - Skipped resources should not put systems in 'error' state