We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 498ce50 commit 192fc14Copy full SHA for 192fc14
lib/logstash/inputs/jdbc.rb
@@ -232,7 +232,7 @@ def register
232
raise(LogStash::ConfigurationError, "Only one of :jdbc_password, :jdbc_password_filepath may be set at a time.")
233
end
234
235
- @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
236
237
if enable_encoding?
238
@converters = {}
spec/inputs/jdbc_spec.rb
@@ -117,7 +117,7 @@
117
118
119
it "should read in jdbc_password from file" do
120
- expect(plugin.jdbc_password).to eq(jdbc_password)
+ expect(plugin.jdbc_password.value).to eq(jdbc_password)
121
122
123
0 commit comments