(POOLER-131) Return requested name when getting VMs

This commit updates fetch_single_vm to return the name of the template that was requested, instead of the name of the pool providing the VM to meet the request. Without this change, when an alias is used for fetching a VM, a different pool title may be returned containing the requested VMs than the user initially requested.
This commit is contained in:
kirby@puppetlabs.com 2018-09-27 12:04:01 -07:00
parent 918877918a
commit 4ba4a1dd6c
4 changed files with 16 additions and 13 deletions

View file

@ -82,7 +82,7 @@ describe Vmpooler::API::V1 do
expected = {
ok: true,
pool1: {
poolone: {
hostname: 'abcdefghijklmnop'
}
}

View file

@ -63,7 +63,7 @@ describe Vmpooler::API::V1 do
expected = {
ok: true,
pool1: {
poolone: {
hostname: 'abcdefghijklmnop'
}
}