(POOLER-148) Improve code comment.

Co-Authored-By: Samuel <samuel@puppet.com>
This commit is contained in:
Andrew Makousky 2019-09-04 01:32:20 +00:00 committed by GitHub
parent 79ac9ad37e
commit a2548d11e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)