Skip to content

Commit d32ff61

Browse files
committed
fix logic error and prep for release
1 parent 2deaf3a commit d32ff61

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
33

44
This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)
55

6+
## [0.3.1] 2017-10-10
7+
### Fixed
8+
- Really obvious logical error introduced whilst making 0.3.0 pass tests (@barryorourke)
9+
610
## [0.3.0] 2017-10-06
711
### Breaking Change
812
- Dropped support for Python 3.3 (@barryorourke)

sensu_plugin/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __make_dynamic(self, method):
4848

4949
def dynamic(*args):
5050
self.plugin_info['status'] = method
51-
if args:
51+
if not args:
5252
args = None
5353
self.output(args)
5454
sys.exit(getattr(self.exit_code, method))

0 commit comments

Comments
 (0)