lib/flapjack/data/notification_rule.rb in flapjack-0.7.27 vs lib/flapjack/data/notification_rule.rb in flapjack-0.7.28
- old
+ new
@@ -143,10 +143,10 @@
json_rule_data = {
:id => rule_data[:id].to_s,
:contact_id => rule_data[:contact_id].to_s,
:entities => Oj.dump(rule_data[:entities]),
:tags => Oj.dump(tag_data),
- :time_restrictions => Oj.dump(rule_data[:time_restrictions]),
+ :time_restrictions => Oj.dump(rule_data[:time_restrictions], :mode => :compat),
:unknown_media => Oj.dump(rule_data[:unknown_media]),
:warning_media => Oj.dump(rule_data[:warning_media]),
:critical_media => Oj.dump(rule_data[:critical_media]),
:unknown_blackhole => rule_data[:unknown_blackhole],
:warning_blackhole => rule_data[:warning_blackhole],