From d3c5d3b9be0a91c7c70c3499c8fdb6cabfbae53d Mon Sep 17 00:00:00 2001 From: Rick Bradley Date: Fri, 20 May 2016 14:22:00 -0500 Subject: [PATCH] Fix two botched variable references --- lib/vmpooler/api/v1.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vmpooler/api/v1.rb b/lib/vmpooler/api/v1.rb index 14dbc49..33d5503 100644 --- a/lib/vmpooler/api/v1.rb +++ b/lib/vmpooler/api/v1.rb @@ -348,7 +348,7 @@ module Vmpooler vms = [] jdata.each do |template, count| - val.to_i.times do |_i| + count.to_i.times do |_i| vm = fetch_single_vm(template) if !vm failed = true @@ -366,7 +366,7 @@ module Vmpooler else vms.each do |(template, vm)| account_for_starting_vm(template, vm) - update_result_hosts(results, template, vm) + update_result_hosts(result, template, vm) end result['ok'] = true