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:
parent
14f09cf958
commit
7807dc8f1e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user