From 0ba47ba5a09bc0af583ace88ee128abfdc824604 Mon Sep 17 00:00:00 2001 From: Alejandro Huertas Herrero Date: Mon, 23 Sep 2019 12:09:26 +0200 Subject: [PATCH] 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. --- src/onedb/onedb_live.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onedb/onedb_live.rb b/src/onedb/onedb_live.rb index 9bec8efc05..6a6611fffa 100644 --- a/src/onedb/onedb_live.rb +++ b/src/onedb/onedb_live.rb @@ -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')