lib/logstash/inputs/jdbc.rb in logstash-input-jdbc-4.2.1 vs lib/logstash/inputs/jdbc.rb in logstash-input-jdbc-4.2.2
- old
+ new
@@ -230,10 +230,10 @@
if (@jdbc_password_filepath and @jdbc_password)
raise(LogStash::ConfigurationError, "Only one of :jdbc_password, :jdbc_password_filepath may be set at a time.")
end
- @jdbc_password = File.read(@jdbc_password_filepath).strip if @jdbc_password_filepath
+ @jdbc_password = LogStash::Util::Password.new(File.read(@jdbc_password_filepath).strip) if @jdbc_password_filepath
if enable_encoding?
@converters = {}
@columns_charset.each do |column_name, encoding|
@converters[encoding] = LogStash::Util::Charset.new(encoding)