Make docker utils work with psych 4

Change-Id: I958a41f6cd2a943fe98f66012c90d01da24c51b5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/307803
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
This commit is contained in:
Jacob Burroughs 2022-12-20 15:38:12 -06:00
parent 289c5c310f
commit 9beba76c18
1 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,11 @@ class DockerUtils
end
compose_files.inject({}) do |config, file|
if YAML::VERSION < "4.0"
config.merge(YAML.load_file(file), &merger)
else
config.merge(YAML.load_file(file, aliases: true), &merger)
end
end
end
end