mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 10:28:41 -05:00
(QENG-3919) Return 503 status on failed allocation
Making sure we go back to the original functionality, which was: - status 200 when vms successfully allocated - status 404 when a pool name is unknown - status 404 when no pool name is specified - status 503 when vm allocation failed
This commit is contained in:
parent
8943ff4935
commit
c4cac5b0c5
2 changed files with 13 additions and 12 deletions
|
|
@ -104,6 +104,7 @@ module Vmpooler
|
|||
if failed
|
||||
vms.each do |(template, vm)|
|
||||
return_single_vm(template, vm)
|
||||
status 503
|
||||
end
|
||||
else
|
||||
vms.each do |(template, vm)|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue