lib/flapjack/gateways/pagerduty.rb in flapjack-0.6.50 vs lib/flapjack/gateways/pagerduty.rb in flapjack-0.6.51

- old
+ new

@@ -167,19 +167,19 @@ @logger.debug("No pagerduty credentials found for #{entity_check.entity_name}:#{check}, skipping") next end # FIXME: try each set of credentials until one works (may have stale contacts turning up) - options = pagerduty_credentials.first.merge('check' => check) + options = pagerduty_credentials.first.merge('check' => "#{entity_check.entity_name}:#{check}") acknowledged = pagerduty_acknowledged?(options) if acknowledged.nil? @logger.debug "#{entity_check.entity_name}:#{check} is not acknowledged in pagerduty, skipping" next end pg_acknowledged_by = acknowledged[:pg_acknowledged_by] - @logger.debug "#{check} is acknowledged in pagerduty, creating flapjack acknowledgement... " + @logger.debug "#{entity_check.entity_name}:#{check} is acknowledged in pagerduty, creating flapjack acknowledgement... " who_text = "" if !pg_acknowledged_by.nil? && !pg_acknowledged_by['name'].nil? who_text = " by #{pg_acknowledged_by['name']}" end entity_check.create_acknowledgement('summary' => "Acknowledged on PagerDuty" + who_text)