mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(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:
parent
918877918a
commit
4ba4a1dd6c
4 changed files with 16 additions and 13 deletions
|
|
@ -82,7 +82,7 @@ describe Vmpooler::API::V1 do
|
|||
|
||||
expected = {
|
||||
ok: true,
|
||||
pool1: {
|
||||
poolone: {
|
||||
hostname: 'abcdefghijklmnop'
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ describe Vmpooler::API::V1 do
|
|||
|
||||
expected = {
|
||||
ok: true,
|
||||
pool1: {
|
||||
poolone: {
|
||||
hostname: 'abcdefghijklmnop'
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue