(MAINT) Fix checkout counter allocation

Checkout metric counters were against the template name and not the
actual pool used which prevents us from counting the checkouts in the
pixa4 pools for example.
This commit is contained in:
John O'Connor 2020-11-06 20:46:11 +00:00
parent fd937b416d
commit 11bda0f31a

View file

@ -209,7 +209,7 @@ module Vmpooler
break break
else else
vms << [vmpool, vmname, vmtemplate] vms << [vmpool, vmname, vmtemplate]
metrics.increment("checkout.success.#{vmtemplate}") metrics.increment("checkout.success.#{vmpool}")
end end
end end
end end