1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00
Jan Orel 2023-02-21 17:10:42 +01:00 committed by GitHub
parent 9a3c11c1f4
commit 61f254bd5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,11 @@ module OneCfg::Config::Type
def load(name = @name)
reset
@content = YAML.load_file(name)
if Gem::Version.new(Psych.const_get(:VERSION)) >= Gem::Version.new('4.0')
@content = YAML.load_file(name, aliases: true)
else
@content = YAML.load_file(name)
end
@content
end