mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Reordering API operatiosn for quicker response-times
This commit is contained in:
parent
545792dece
commit
ce79fcfa0f
2 changed files with 14 additions and 15 deletions
|
|
@ -4,7 +4,7 @@ require 'rbvmomi'
|
|||
require 'redis'
|
||||
require 'yaml'
|
||||
|
||||
require File.expand_path( File.dirname( __FILE__ ), './lib/vsphere_helper.rb' )
|
||||
require File.expand_path( File.dirname( __FILE__ ), 'lib/vsphere_helper.rb' )
|
||||
vsphere_helper = VsphereHelper.new
|
||||
|
||||
# Load the pool configuration
|
||||
|
|
@ -27,8 +27,7 @@ $vim = RbVmomi::VIM.connect(
|
|||
# Connect to Redis
|
||||
$redis = Redis.new
|
||||
|
||||
|
||||
|
||||
# Update loop
|
||||
loop do
|
||||
pools.each do |pool|
|
||||
total = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue