Skip to content

Commit

Permalink
fix a bug in config_files() that I introduced in 0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
barryorourke committed Nov 23, 2017
1 parent cb5be17 commit 973869e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins

# [Unreleased]

# [0.4.4]
- Fixes a bug introduced to `utils.config_files` which only returns `/etc/sensu/config.json` (@barryorourke)

# [0.4.3]
## Fixed
- Fixes `utils.config_files` so that it returns a list of files, rather than a list of `None`'s (@barryorourke)
Expand Down Expand Up @@ -54,7 +57,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
## [0.1.0] 2014-01-06
- Initial release (@zsprackett)

[Unreleased]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.3...HEAD
[Unreleased]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.4...HEAD
[0.4.3]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.3...0.4.4
[0.4.2]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.2...0.4.3
[0.4.1]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.1...0.4.2
[0.4.1]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.0...0.4.1
Expand Down
2 changes: 1 addition & 1 deletion sensu_plugin/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def config_files():
else:
files = ['/etc/sensu/config.json']
filenames = [f for f in os.listdir('/etc/sensu/conf.d')
if os.path.splitext(f)[1] == 'json']
if os.path.splitext(f)[1] == '.json']
for filename in filenames:
files.append('/etc/sensu/conf.d/{}'.format(filename))
return files
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='sensu_plugin',
version='0.4.3',
version='0.4.4',
author='Sensu-Plugins and contributors',
author_email='[email protected]',
packages=['sensu_plugin', 'sensu_plugin.test'],
Expand Down

0 comments on commit 973869e

Please sign in to comment.