1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-22 17:57:46 +03:00

Bug in VirtialMachineDriver initialization

This commit is contained in:
Javi Fontan 2010-09-01 11:52:52 +02:00
parent 4bc49760cf
commit adb44a051c

View File

@ -169,13 +169,18 @@ private
def get_runable_action
action=@action_queue.select do |a|
@hosts.include? a[:args][HOST_ARG]
if a[:args][HOST_ARG]
@hosts.include? a[:args][HOST_ARG]
else
true
end
end.first
if action
@hosts << action[:args][HOST_ARG]
@hosts << action[:args][HOST_ARG] if action[:args][HOST_ARG]
@action_queue.delete(action)
end
return action
end
end