mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Merge pull request #90 from sschneid/vm_lifetime_fixup
running-to-lifetime comparison should be 'greater than or equal to'
This commit is contained in:
commit
d3009de224
1 changed files with 1 additions and 1 deletions
|
|
@ -399,7 +399,7 @@ module Vmpooler
|
|||
|
||||
if
|
||||
(lifetime.to_i > 0) &&
|
||||
(running.to_i > lifetime.to_i)
|
||||
(running.to_i >= lifetime.to_i)
|
||||
|
||||
$redis.smove('vmpooler__running__' + pool['name'], 'vmpooler__completed__' + pool['name'], vm)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue