mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Change LogStash::Util::SubstitutionVariables#replace_placeholders refine argument to optional (#16485) (#16487)
(cherry picked from commit 8368c00367
)
Co-authored-by: Edmo Vamerlatti Costa <11836452+edmocosta@users.noreply.github.com>
This commit is contained in:
parent
97513f76d7
commit
1a8676dc7d
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ module ::LogStash::Util::SubstitutionVariables
|
|||
# If the value does not match the pattern, the 'value' param returns as-is
|
||||
# When setting refine to true, substituted value will be cleaned against escaped single/double quotes
|
||||
# and generates array if resolved substituted value is array string
|
||||
def replace_placeholders(value, refine)
|
||||
def replace_placeholders(value, refine = false)
|
||||
if value.kind_of?(::LogStash::Util::Password)
|
||||
interpolated = replace_placeholders(value.value, refine)
|
||||
return ::LogStash::Util::Password.new(interpolated)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue