mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -05:00
Do not show a pool as empty in status API when the configured size is 0
This commit is contained in:
parent
f596a989a5
commit
a015fd87dc
1 changed files with 1 additions and 1 deletions
|
|
@ -508,7 +508,7 @@ module Vmpooler
|
|||
end
|
||||
|
||||
# for backwards compatibility, include separate "empty" stats in "status" block
|
||||
if ready == 0
|
||||
if ready == 0 && max != 0
|
||||
result[:status][:empty] ||= []
|
||||
result[:status][:empty].push(pool['name'])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue