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/).
44This CHANGELOG follows the format listed [ here] ( https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md )
55
66## [ Unreleased]
7+ - Fixes ` client_name ` in ` bail() ` as it was using an incorrect path within ` event ` dict (@absolutejam )
78
89# [ 0.4.1]
910## Fixed
Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ def bail(self, msg):
103103 '''
104104 Gracefully terminate with message
105105 '''
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' )
108108 print ('{}: {}/{}' .format (msg , client_name , check_name ))
109109 sys .exit (0 )
110110
You can’t perform that action at this time.
0 commit comments