Start keeping track of how long hosts are running

This commit is contained in:
Scott Schneider 2013-12-12 10:04:49 -08:00
parent 31ea12dc07
commit e3017beba1
2 changed files with 2 additions and 0 deletions

View file

@ -68,6 +68,7 @@ post '/vm/:template' do
unless (vm.nil?)
$redis.sadd('vmware_host_pool__running__'+params[:template], vm)
$redis.hset('vmware_host_pool__active__'+params[:template], vm, Time.now)
result[params[:template]]['ok'] = true
result[params[:template]]['hostname'] = vm