Skip to content

Commit f6e4ef4

Browse files
authored
Merge pull request #40 from barryorourke/bugfix_and_release_044
Fixes a bug introduced to `utils.config_files` and prepare for 0.4.4
2 parents cb5be17 + cdac9ea commit f6e4ef4

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

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

66
# [Unreleased]
77

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

57-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.3...HEAD
61+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.4...HEAD
62+
[0.4.3]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.3...0.4.4
5863
[0.4.2]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.2...0.4.3
5964
[0.4.1]: https://github.com/sensu-plugins/sensu-plugin-python/compare/0.4.1...0.4.2
6065
[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)