mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-03 21:52:31 +09:00
(cherry picked from commit 78a69856ee)
This commit is contained in:
1 parent
8d94118f69
commit
0639397eb4
1 file changed
+3
-1
@@ -201,6 +201,8 @@ class Cluster
|
||||
|
||||
# Retrieve all known VM states from vCenter
|
||||
def vcenter_vms_state
|
||||
vc_uuid = @vic.vim.serviceContent.about.instanceUuid
|
||||
|
||||
view = @vic.vim
|
||||
.serviceContent
|
||||
.viewManager
|
||||
@@ -244,7 +246,7 @@ class Cluster
|
||||
result.each do |r|
|
||||
next unless r.obj.is_a?(RbVmomi::VIM::VirtualMachine)
|
||||
|
||||
vms_hash[r.obj._ref] = r.to_hash
|
||||
vms_hash[r.obj._ref + '_' + vc_uuid] = r.to_hash
|
||||
end
|
||||
|
||||
view.DestroyView
|
||||
|
||||
Reference in new issue
Block a user