Commit 868e8be1 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Allow aliases when parsing Redis configuration

This is a follow-up to
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/58042 which
changed it to use `#safe_load` and causes some config files with aliases
to not work.
parent f4337bc9
......@@ -142,7 +142,7 @@ module Gitlab
def fetch_config
return false unless self.class._raw_config
yaml = YAML.safe_load(self.class._raw_config)
yaml = YAML.safe_load(self.class._raw_config, aliases: true)
# If the file has content but it's invalid YAML, `load` returns false
if yaml
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment