Store template name in vmpooler__vm__$vm Redis hash

This commit is contained in:
Scott Schneider 2014-11-03 09:27:28 -08:00
parent 17b1768a76
commit 4363d8e067

View file

@ -184,6 +184,7 @@ module Vmpooler
# Add VM to Redis inventory ('pending' pool)
$redis.sadd('vmpooler__pending__'+vm['template'], vm['hostname'])
$redis.hset('vmpooler__vm__'+vm['hostname'], 'clone', Time.now)
$redis.hset('vmpooler__vm__'+vm['hostname'], 'template', vm['template'])
# Annotate with creation time, origin template, etc.
configSpec = RbVmomi::VIM.VirtualMachineConfigSpec(