Permalink
Browse files

fix check_tsd -c/-w options logic

it should fail only if both are None, not the other way around

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
  • Loading branch information...
1 parent 5dc7cb5 commit 24083dcdde76c0c8b4dd0a2709392c54ac7a8ae0 @filippog filippog committed with tsuna Aug 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/check_tsd
View
@@ -85,7 +85,7 @@ def main(argv):
parser.error('Duration must be strictly positive.')
elif options.downsample_window <= 0:
parser.error('Downsample window must be strictly positive.')
- elif options.critical is not None and options.warning is not None:
+ elif options.critical is None and options.warning is None:
parser.error('You must specify at least a warning threshold (-w) or a'
' critical threshold (-c).')
elif options.ignore_recent < 0:

0 comments on commit 24083dc

Please sign in to comment.