mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
(cherry picked from commit 1f93672b73
)
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
This commit is contained in:
parent
2c1771f89f
commit
1cd6341188
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ module LogStash module Config module Source
|
|||
|
||||
def read_pipelines_from_yaml(yaml_location)
|
||||
logger.debug("Reading pipeline configurations from YAML", :location => pipelines_yaml_location)
|
||||
::YAML.load(IO.read(yaml_location))
|
||||
::YAML.safe_load(::File.read(yaml_location))
|
||||
rescue => e
|
||||
raise ConfigurationError.new("Failed to read pipelines yaml file. Location: #{yaml_location}, Exception: #{e.inspect}")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue