lib/logstash/outputs/s3.rb in logstash-output-s3-4.0.11 vs lib/logstash/outputs/s3.rb in logstash-output-s3-4.0.12
- old
+ new
@@ -195,10 +195,10 @@
if !WritableDirectoryValidator.valid?(@temporary_directory)
raise LogStash::ConfigurationError, "Logstash must have the permissions to write to the temporary directory: #{@temporary_directory}"
end
- if @validate_credentials_on_root_bucket && !WriteBucketPermissionValidator.new(@logger).valid?(bucket_resource)
+ if @validate_credentials_on_root_bucket && !WriteBucketPermissionValidator.new(@logger).valid?(bucket_resource, upload_options)
raise LogStash::ConfigurationError, "Logstash must have the privileges to write to root bucket `#{@bucket}`, check your credentials or your permissions."
end
if @time_file.nil? && @size_file.nil? || @size_file == 0 && @time_file == 0
raise LogStash::ConfigurationError, "The S3 plugin must have at least one of time_file or size_file set to a value greater than 0"