mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 21:25:36 +09: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:
1 file changed
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user