1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #-: Fix x509 authentication (#2945) (#3104)

In case of empty file the output of YAML::load depends on 'yaml' gem
version, it can be nil or false
This commit is contained in:
Pavel Czerný 2024-06-12 10:35:55 +02:00 committed by GitHub
parent 371df07036
commit fb3d0a82f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -145,7 +145,7 @@ private
conf_txt = File.read(conf_file)
conf_opt = YAML::load(conf_txt)
@options.merge!(conf_opt) if conf_opt != false
@options.merge!(conf_opt) if conf_opt
end
end