Skip to content

Commit

Permalink
fixed conflicting short options for -n in check-cloudwatch-metric.rb
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Abrams <[email protected]>
  • Loading branch information
majormoses committed Aug 12, 2017
1 parent ecbe55e commit e212c97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang

### Fixed
- check-cloudwatch-metric.rb, check-cloudwatch-composite-metric.rb: fixed defaults to work (@majormoses)
- check-cloudwatch-metric.rb: short option `-n` was conflicting with `no_data_ok` and `namespace` as `check-cloudwatch-composite-metric.rb` uses `-O` I opted for that for consistency (@majormoses)

### Changed
- check-cloudwatch-metric.rb, check-cloudwatch-composite-metric.rb: `self.parse_dimensions` and `dimension_string` were the same in both checks This fix was common mamong both checks so I moved it into the module
Expand Down
2 changes: 1 addition & 1 deletion bin/check-cloudwatch-metric.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class CloudWatchMetricCheck < Sensu::Plugin::Check::CLI
default: 'greater'

option :no_data_ok,
short: '-n',
short: '-O',
long: '--allow-no-data',
description: 'Returns ok if no data is returned from the metric',
boolean: true,
Expand Down

0 comments on commit e212c97

Please sign in to comment.