mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
(cherry picked from commit 78a69856eef4089dcb2798bff87155b618fab817)
This commit is contained in:
parent
8d94118f69
commit
0639397eb4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user