mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 02:18:41 -05:00
[QENG-4075] Fix bug with template name on allocation failure
We're returning [nil,nil] in this case, meaning that name will not be set. This means we'll get an error trying to concatenate the stats string. Use the requested template name here instead.
This commit is contained in:
parent
3c531d3ec3
commit
f45cf10839
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ module Vmpooler
|
||||||
vm, name = fetch_single_vm(requested)
|
vm, name = fetch_single_vm(requested)
|
||||||
if !vm
|
if !vm
|
||||||
failed = true
|
failed = true
|
||||||
statsd.increment(statsd_prefix + '.checkout.empty.' + name, 1)
|
statsd.increment(statsd_prefix + '.checkout.empty.' + requested, 1)
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
vms << [ name, vm ]
|
vms << [ name, vm ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue