Vm delete fails through ruby api - Parameter that is supposed to be boolean is not

Hi Team,

When we are trying to delete using ruby api,we are getting “Parameter that is supposed to be boolean is not” . Tried with recreate=true but same issue.

Code:

client = Client.new(CREDENTIALS, ENDPOINT)

xml = OpenNebula::VirtualMachine.build_xml
vm = OpenNebula::VirtualMachine.new(xml, client)
vm_pool = VirtualMachinePool.new(client, -1)

vmtodel = VirtualMachine.new(VirtualMachine.build_xml(2515),client)

rc=vmtodel.delete(recreate=false)

if OpenNebula.is_error?(rc)
puts rc.message
exit(-1)
else
puts "Vm deleted"
end

Hi,

That is strange. The one.vm.recover API call does not have any boolean parameters…
What opennebula version are you using?

Hi Martin,

We used opennebula ruby API version 5.0 . The issue is solved when we installed version 4.12 .