Skip to content

Commit

Permalink
Merge pull request #62 from masaomoc/modify_check_apikeys
Browse files Browse the repository at this point in the history
skip apikey_check error when auto_create_bucket is true and bucket doesn't exist...
  • Loading branch information
repeatedly committed Dec 16, 2014
2 parents 3cebbfa + 65a1382 commit 11a5fd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fluent/plugin/out_s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def ensure_bucket

def check_apikeys
@bucket.empty?
rescue AWS::S3::Errors::NoSuchBucket
# ignore NoSuchBucket Error because ensure_bucket checks it.
rescue
raise "can't call S3 API. Please check your aws_key_id / aws_sec_key or s3_region configuration"
end
Expand Down

0 comments on commit 11a5fd0

Please sign in to comment.