Skip to content

Commit 8e14253

Browse files
committed
prep for 2.0.3 release
1 parent cf54bb4 commit 8e14253

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
55
Which is based on [Keep A Changelog](http://keepachangelog.com/)
66

77
## [Unreleased]
8+
9+
## [2.0.3] - 2019-02-17
810
### Fixed
9-
- `check-megaraid-sas-status.rb`: Fixed logic error in which it was assumed that all virtual drives were in sequential order. Also fixed pattern matching when parsing individual drive status.
11+
- `check-megaraid-sas-status.rb`: Fixed logic error in which it was assumed that all virtual drives were in sequential order. Also fixed pattern matching when parsing individual drive status. (@SeanSith)
1012

1113
## [2.0.2] - 2018-04-18
1214
### Fixed
@@ -68,7 +70,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
6870
### Added
6971
- initial release
7072

71-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/2.0.2...HEAD
73+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/2.0.3...HEAD
74+
[2.0.3]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/2.0.2...2.0.3
7275
[2.0.2]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/2.0.1...2.0.2
7376
[2.0.1]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/2.0.0...2.0.1
7477
[2.0.0]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/1.0.0...2.0.0

bin/check-megaraid-sas-status.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ def run
6464
virtual_drives.each do |i|
6565
# and check them in turn
6666
stdout = `#{config[:megaraidcmd]} -LDInfo -L#{i} -a#{config[:controller]} `
67+
# TODO: once we drop ruby 2.3 support change this to `.match?(stdout)`
68+
# this reduces memory consumption as we don't care about the output in this conditional just whether or not it matches.
69+
# The `.match?()` function was introduced in 2.4
6770
unless Regexp.new(/State\s+:\s+Optimal/).match(stdout)
6871
error = sprintf '%svirtual drive %d: %s ', error, i, stdout[/State\s*:\s*.*/].split(':')[1] # rubocop:disable Style/FormatString
6972
have_error = true

lib/sensu-plugins-raid-checks/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module SensuPluginsRaidChecks
44
module Version
55
MAJOR = 2
66
MINOR = 0
7-
PATCH = 2
7+
PATCH = 3
88

99
VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
1010
end

0 commit comments

Comments
 (0)