bin/check-kms-key.rb in sensu-plugins-aws-10.1.1 vs bin/check-kms-key.rb in sensu-plugins-aws-10.1.2
- old
+ new
@@ -55,10 +55,10 @@
def check_key(id)
return kms_client.describe_key(key_id: id)['key_metadata']['enabled']
rescue Aws::KMS::Errors::NotFoundException
critical 'Key doesnt exist'
- rescue => e
+ rescue StandardError => e
unknown "Failed to check key #{id}: #{e}"
end
def run
if config[:key_id].nil?