mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
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:
parent
371df07036
commit
fb3d0a82f6
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user