We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f737990 commit 7e72020Copy full SHA for 7e72020
handlers/notification/pagerduty.rb
@@ -29,7 +29,7 @@ def incident_key
29
end
30
31
def handle
32
- if @event['check']['pager_team']
+ if @event['check']['pager_team'] && defined? settings[config[:json_config]][@event['check']['pager_team']]['api_key']
33
api_key = settings[config[:json_config]][@event['check']['pager_team']]['api_key']
34
else
35
api_key = settings[config[:json_config]]['api_key']
0 commit comments