M #-: fix bug in onedb purge done (#3755)

Fix bug when there are no consecutive VMs, so the get_page function didn't return the pool.
This commit is contained in:
Alejandro Huertas Herrero authored and Ruben S. Montero committed 2019-09-23 12:09:26 +02:00
1 parent ff56f475b9
commit 0ba47ba5a0
1 file changed
+1 -1
+1 -1
View File
@@ -210,7 +210,7 @@ class OneDBLive
ops = { :start_time => 0,
:end_time => Time.now,
:pages => PAGES }.merge(options)
vmpool = OpenNebula::VirtualMachinePool.new(client)
vmpool = OpenNebula::VirtualMachinePool.new(client, Pool::INFO_ALL)
start_time = ops[:start_time].to_i
end_time = ops[:end_time].to_i
done = OpenNebula::VirtualMachine::VM_STATE.index('DONE')