Skip to content

Commit 973869e

Browse files
committed
fix a bug in config_files() that I introduced in 0.4.3
1 parent cb5be17 commit 973869e

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
55

66
# [Unreleased]
77

8+
# [0.4.4]
9+
- Fixes a bug introduced to `utils.config_files` which only returns `/etc/sensu/config.json` (@barryorourke)
10+
811
# [0.4.3]
912
## Fixed
1013
- Fixes `utils.config_files` so that it returns a list of files, rather than a list of `None`'s (@barryorourke)
@@ -54,7 +57,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
5457
## [0.1.0] 2014-01-06
5558
- Initial release (@zsprackett)
5659

57-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.3...HEAD
60+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.4...HEAD
61+
[0.4.3]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.3...0.4.4
5862
[0.4.2]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.2...0.4.3
5963
[0.4.1]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.1...0.4.2
6064
[0.4.1]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.0...0.4.1

sensu_plugin/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def config_files():
2121
else:
2222
files = ['/etc/sensu/config.json']
2323
filenames = [f for f in os.listdir('/etc/sensu/conf.d')
24-
if os.path.splitext(f)[1] == 'json']
24+
if os.path.splitext(f)[1] == '.json']
2525
for filename in filenames:
2626
files.append('/etc/sensu/conf.d/{}'.format(filename))
2727
return files

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='sensu_plugin',
5-
version='0.4.3',
5+
version='0.4.4',
66
author='Sensu-Plugins and contributors',
77
author_email='sensu-users@googlegroups.com',
88
packages=['sensu_plugin', 'sensu_plugin.test'],

0 commit comments

Comments
 (0)