Fix two botched variable references

This commit is contained in:
Rick Bradley 2016-05-20 14:22:00 -05:00
parent e323a7fb58
commit d3c5d3b9be

View file

@ -348,7 +348,7 @@ module Vmpooler
vms = [] vms = []
jdata.each do |template, count| jdata.each do |template, count|
val.to_i.times do |_i| count.to_i.times do |_i|
vm = fetch_single_vm(template) vm = fetch_single_vm(template)
if !vm if !vm
failed = true failed = true
@ -366,7 +366,7 @@ module Vmpooler
else else
vms.each do |(template, vm)| vms.each do |(template, vm)|
account_for_starting_vm(template, vm) account_for_starting_vm(template, vm)
update_result_hosts(results, template, vm) update_result_hosts(result, template, vm)
end end
result['ok'] = true result['ok'] = true