sensu-plugins-aws 11.5.0 → 11.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edbe12ec3ac72c5f79f014c7f1fd0044d0a63a0fa18f9ae44715fa1f9853ad9d
4
- data.tar.gz: 4b12a5d6af4d7950fd4650f5623209cb69ad9bd8afa2a85eec8421470b40df6f
3
+ metadata.gz: f2c73e2db8277365a293de76f732e4c72c5517db386e6b94c1093f2d38f959cc
4
+ data.tar.gz: 15a3362d3d0e2e96fc4916dba87947a5fbfcfad51e889e225769721a323506a6
5
5
  SHA512:
6
- metadata.gz: 92cdcabadaeaecdd42c33dbef15e657424754627acb0b1605551c9986b31fc6a525b1fadd40967d189150f8068e351652169de4d22bd6bd7a5587ddf65c1e11d
7
- data.tar.gz: 7d4e4034f429dc20569789cb0702ba870ceb35c6d385db18aa1c9ef004071e98cb985943b2529bdd8fa13d663b7eaf7ea9282e1037ee8050a51ce2a4db535a2c
6
+ metadata.gz: c937ee8a172e380a8e489a5d2196edeaed1b32ffd297a8ac218cbd9d15e9aaac2ad9f386451d52b59de7b47f2f1fa6ad44ef02d39748fb04e632e8b1644944c0
7
+ data.tar.gz: 7049f84047baf9b5d0c102444a5105a68ff69869e8ca3f754a8d6bd05113b7d873e3325b2efbc6a61ed2064f09e5ce447489626ef74163b052158d84876c6986
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [11.5.1] - 2018-06-21
9
+ ### Fixed
10
+ - check-rds-pending: Fix issue if there are no RDS instances in a region. Previously this would raise an API exception (@stevenviola)
11
+
8
12
  ## [11.5.0] - 2018-05-17
9
13
  ### Added
10
14
  - handler-ses.rb: can now set `mail_to` in a check and handler will send to the appropriate email (@Juan-Moreno)
@@ -478,7 +482,8 @@ WARNING: This release contains major breaking changes that will impact all user
478
482
  ### Added
479
483
  - initial release
480
484
 
481
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.5.0...HEAD
485
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.5.1...HEAD
486
+ [11.5.1]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.5.0...11.5.1
482
487
  [11.5.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.4.2...11.5.0
483
488
  [11.4.2]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.4.1...11.4.2
484
489
  [11.4.1]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.4.0...11.4.1
@@ -47,10 +47,12 @@ class CheckRDSEvents < Sensu::Plugin::Check::CLI
47
47
  # fetch all clusters identifiers
48
48
  clusters = rds.describe_db_instances[:db_instances].map { |db| db[:db_instance_identifier] }
49
49
  maint_clusters = []
50
- # Check if there is any pending maintenance required
51
- pending_record = rds.describe_pending_maintenance_actions(filters: [{ name: 'db-instance-id', values: clusters }])
52
- pending_record[:pending_maintenance_actions].each do |response|
53
- maint_clusters.push(response[:pending_maintenance_action_details])
50
+ if clusters.any?
51
+ # Check if there is any pending maintenance required
52
+ pending_record = rds.describe_pending_maintenance_actions(filters: [{ name: 'db-instance-id', values: clusters }])
53
+ pending_record[:pending_maintenance_actions].each do |response|
54
+ maint_clusters.push(response[:pending_maintenance_action_details])
55
+ end
54
56
  end
55
57
  rescue StandardError => e
56
58
  unknown "An error occurred processing AWS RDS API: #{e.message}"
@@ -2,7 +2,7 @@ module SensuPluginsAWS
2
2
  module Version
3
3
  MAJOR = 11
4
4
  MINOR = 5
5
- PATCH = 0
5
+ PATCH = 1
6
6
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.5.0
4
+ version: 11.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-18 00:00:00.000000000 Z
11
+ date: 2018-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin