lib/flapjack/gateways/pagerduty.rb in flapjack-0.7.12 vs lib/flapjack/gateways/pagerduty.rb in flapjack-0.7.13
- old
+ new
@@ -59,10 +59,10 @@
event = Yajl::Parser.parse(events[queue][1])
type = event['notification_type']
@logger.debug("pagerduty notification event popped off the queue: " + event.inspect)
unless 'shutdown'.eql?(type)
event_id = event['event_id']
- entity, check = event_id.split(':')
+ entity, check = event_id.split(':', 2)
state = event['state']
summary = event['summary']
address = event['address']
headline = type.upcase