mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
Only add VM information from EC2 instances if they are running. Prevents wrong ZOMBIES computation
This commit is contained in:
1 parent
a96e809b08
commit
2a896ace1a
1 file changed
+7
-1
@@ -327,10 +327,16 @@ class EC2Driver
|
||||
|
||||
vms_info = "VM_POLL=YES\n"
|
||||
|
||||
usedcpu = 0
|
||||
#
|
||||
# Add information for running VMs (running and pending).
|
||||
#
|
||||
usedcpu = 0
|
||||
usedmemory = 0
|
||||
|
||||
begin
|
||||
AWS.ec2.instances.each do |i|
|
||||
next if i.status != :pending && i.status != :running
|
||||
|
||||
poll_data=parse_poll(i)
|
||||
|
||||
one_id = i.tags['ONE_ID']
|
||||
|
||||
Reference in new issue
Block a user