lib/flapjack/data/notification_rule.rb in flapjack-0.7.7 vs lib/flapjack/data/notification_rule.rb in flapjack-0.7.8
- old
+ new
@@ -216,16 +216,16 @@
( d[:entity_tags].nil? ||
d[:entity_tags].is_a?(Array) &&
d[:entity_tags].all? {|et| et.is_a?(String)} ) } =>
"entity_tags must be a list of strings",
- proc { (d.has_key?(:entities) &&
- d[:entities].is_a?(Array) &&
- (d[:entities].size > 0)) ||
- (d.has_key?(:entity_tags) &&
- d[:entity_tags].is_a?(Array) &&
- (d[:entity_tags].size > 0)) } =>
- "entities or entity tags must have at least one value",
+ #proc { (d.has_key?(:entities) &&
+ # d[:entities].is_a?(Array) &&
+ # (d[:entities].size > 0)) ||
+ # (d.has_key?(:entity_tags) &&
+ # d[:entity_tags].is_a?(Array) &&
+ # (d[:entity_tags].size > 0)) } =>
+ #"entities or entity tags must have at least one value",
proc { !d.has_key?(:time_restrictions) ||
( d[:time_restrictions].nil? ||
d[:time_restrictions].all? {|tr|
!!prepare_time_restriction(symbolize(tr))