mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-22 13:33:52 +03:00
bug #1060: set VM to unknown when it cannot be monitoried
This commit is contained in:
parent
cd9f6d6705
commit
2f4bf9bbe2
@ -68,6 +68,12 @@ end
|
||||
doms_info=ganglia.get_vms_information
|
||||
dom_id=domain.split('-').last
|
||||
|
||||
# Unknown state when the VM is not found
|
||||
if !doms_info || !(doms_info[domain] || doms_info[dom_id])
|
||||
puts "STATE=d"
|
||||
exit(0)
|
||||
end
|
||||
|
||||
# Get key one-<vmid> or <vmid> key from the hash
|
||||
dom_info=doms_info[domain]
|
||||
dom_info=doms_info[dom_id] if !dom_info
|
||||
|
Loading…
Reference in New Issue
Block a user