Skip to content

Commit d9f4631

Browse files
committed
bump dep of sensu-plugin to 2.x
1 parent c728b64 commit d9f4631

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ This CHANGELOG follows the format located [here](https://github.com/sensu-plugin
55

66
## [Unreleased]
77

8+
### Breaking Change
9+
- bumped requirement of `sensu-plugin` [to 2.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v200---2017-03-29) (@majormoses)
10+
11+
### Fixed
12+
- check-mongodb-metric.rb: make `--metric` required since it is (@majormoses)
13+
814
## [1.4.1] - 2017-09-23
915
### Fixed
1016
- Support for database size metrics (@fandrews)

bin/check-mongodb-metric.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ class CheckMongodbMetric < Sensu::Plugin::Check::CLI
9595
option :metric,
9696
description: 'Name of the metric to check',
9797
long: '--metric METRIC',
98-
short: '-m METRIC'
98+
short: '-m METRIC',
99+
required: true
99100

100101
option :warn,
101102
description: 'Warn if values are above this threshold',

sensu-plugins-mongodb.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
3434

3535
s.add_runtime_dependency 'bson', '~> 4.0'
3636
s.add_runtime_dependency 'mongo', '2.4.1'
37-
s.add_runtime_dependency 'sensu-plugin', '~> 1.2'
37+
s.add_runtime_dependency 'sensu-plugin', '~> 2.0'
3838

3939
s.add_development_dependency 'bundler', '~> 1.7'
4040
s.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'

0 commit comments

Comments
 (0)