mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
(POOLER-148) Improve code comment.
Co-Authored-By: Samuel <samuel@puppet.com>
This commit is contained in:
parent
79ac9ad37e
commit
a2548d11e8
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ module Vmpooler
|
|||
$redis.hset('vmpooler__vm__' + vm, 'check', Time.now)
|
||||
# Check if the hosts TTL has expired
|
||||
if ttl > 0
|
||||
# 'boottime' may be nil if host is not powered on
|
||||
# if 'boottime' is nil, set bootime to beginning of unix epoch, forces TTL to be assumed expired
|
||||
boottime = $redis.hget("vmpooler__vm__#{vm}", 'ready')
|
||||
if boottime
|
||||
boottime = Time.parse(boottime)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue