lib/flapjack/gateways/api/contact_methods.rb in flapjack-0.8.8 vs lib/flapjack/gateways/api/contact_methods.rb in flapjack-0.8.9
- old
+ new
@@ -142,11 +142,11 @@
logger.debug("post /notification_rules data: ")
logger.debug(params.inspect)
contact = find_contact(params[:contact_id])
- rule_data = hashify(:entities, :tags,
+ rule_data = hashify(:entities, :tags, :regex_tags,
:unknown_media, :warning_media, :critical_media, :time_restrictions,
:unknown_blackhole, :warning_blackhole, :critical_blackhole) {|k| [k, params[k]]}
rule_or_errors = contact.add_notification_rule(rule_data, :logger => logger)
@@ -165,10 +165,10 @@
logger.debug(params.inspect)
rule = find_rule(params[:id])
contact = find_contact(rule.contact_id)
- rule_data = hashify(:entities, :tags,
+ rule_data = hashify(:entities, :tags, :regex_tags,
:unknown_media, :warning_media, :critical_media, :time_restrictions,
:unknown_blackhole, :warning_blackhole, :critical_blackhole) {|k| [k, params[k]]}
errors = rule.update(rule_data, :logger => logger)