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

M #-: Avoid error reporting exception in vcenter

At the time of loading vcenterrc, if someting goes wrong
it tries to log the error using a non defined error_message
function
This commit is contained in:
Tino Vazquez 2021-01-19 16:07:47 +01:00
parent 14f09cf958
commit 7807dc8f1e
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -63,8 +63,7 @@ class VCenterConf < Hash
vcenterrc_path = "#{VAR_LOCATION}/remotes/etc/vmm/vcenter/vcenterrc"
merge!(YAML.load_file(vcenterrc_path))
rescue StandardError => e
STDERR.puts error_message("Couldn't load vcenterrc. \
Reason #{e.message}.")
STDERR.puts "Couldn't load vcenterrc. Reason #{e.message}."
end
super