File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ 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
+ ## Fixed
8
+ - Fixes ` utils.config_files ` so that it returns a list of files, rather than a list of ` None ` 's (@barryorourke )
7
9
8
10
# [ 0.4.2]
9
- ##Fixed
11
+ ## Fixed
10
12
- Fixes ` client_name ` in ` bail() ` as it was using an incorrect path within ` event ` dict (@absolutejam )
11
13
12
14
# [ 0.4.1]
Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ def config_files():
20
20
return sensu_config_files .split (':' )
21
21
else :
22
22
files = ['/etc/sensu/config.json' ]
23
- return [files .append ('/etc/sensu/conf.d/{}' .format (filename ))
24
- for filename in os .listdir ('/etc/sensu/conf.d' )
25
- if os .path .splitext (filename )[1 ] == '.json' ]
23
+ filenames = [f for f in os .listdir ('/etc/sensu/conf.d' )
24
+ if os .path .splitext (f )[1 ] == 'json' ]
25
+ for filename in filenames :
26
+ files .append ('/etc/sensu/conf.d/{}' .format (filename ))
27
+ return files
26
28
27
29
28
30
def get_settings ():
You can’t perform that action at this time.
0 commit comments