mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
B #2526: improvement in vCenter VM monitoring
This commit is contained in:
1 parent
6d7c773973
commit
cbf42a7492
2 files changed
+6
-3
No files matched your search
@@ -509,8 +509,9 @@ class ClusterComputeResource
|
||||
str_info << "POLL=\"#{vm.info.gsub('"', "\\\"")}\"]"
|
||||
|
||||
rescue Exception => e
|
||||
STDERR.puts e.inspect
|
||||
STDERR.puts e.backtrace
|
||||
tmp_str = e.inspect
|
||||
tmp_str << e.backtrace.join("\n")
|
||||
str_info << "ERROR=\"#{Base64.encode64(tmp_str).gsub("\n","")}\"]"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -852,7 +852,9 @@ class Template
|
||||
str << "IMPORT_STATE =\"#{@state}\"\n"
|
||||
|
||||
# Get DS information
|
||||
if !@vm_info["datastore"].last._ref.nil?
|
||||
if !@vm_info["datastore"].nil?
|
||||
!@vm_info["datastore"].last.nil? &&
|
||||
!@vm_info["datastore"].last._ref.nil?
|
||||
str << "VCENTER_DS_REF = \"#{@vm_info["datastore"].last._ref}\"\n"
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user