mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
(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. Note - this is a re-rerun - the last commit on this file over-wrote the change.
This commit is contained in:
parent
55e45bcbe5
commit
a407d2329d
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ module Vmpooler
|
||||||
if vmname
|
if vmname
|
||||||
account_for_starting_vm(vmpool, vmname)
|
account_for_starting_vm(vmpool, vmname)
|
||||||
vms << [vmpool, vmname, vmtemplate]
|
vms << [vmpool, vmname, vmtemplate]
|
||||||
metrics.increment("checkout.success.#{vmtemplate}")
|
metrics.increment("checkout.success.#{vmpool}")
|
||||||
else
|
else
|
||||||
failed = true
|
failed = true
|
||||||
metrics.increment("checkout.empty.#{requested}")
|
metrics.increment("checkout.empty.#{requested}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue