File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
This CHANGELOG follows the format listed [ here] ( https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md )
5
5
6
6
## [ Unreleased]
7
+ - Fixes ` client_name ` in ` bail() ` as it was using an incorrect path within ` event ` dict (@absolutejam )
7
8
8
9
# [ 0.4.1]
9
10
## Fixed
Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ def bail(self, msg):
103
103
'''
104
104
Gracefully terminate with message
105
105
'''
106
- client_name = self .event .get ('client ' , 'error:no-client-name' )
107
- check_name = self .event ['client ' ].get ('name' , 'error:no-check-name' )
106
+ client_name = self .event [ 'client' ] .get ('name ' , 'error:no-client-name' )
107
+ check_name = self .event ['check ' ].get ('name' , 'error:no-check-name' )
108
108
print ('{}: {}/{}' .format (msg , client_name , check_name ))
109
109
sys .exit (0 )
110
110
You can’t perform that action at this time.
0 commit comments