Updated YAML config variables

The symbol notation for the YAML variables "server," "username," and, "password," were not working for me.  When changing them to strings the script seems to work.
This commit is contained in:
FOXX 2016-01-05 13:59:05 -06:00
parent b60ceb12bf
commit 61bbb798ca

View file

@ -22,12 +22,12 @@ def create_template_deltas( folder )
abort 'No config file (./vmpooler.yaml or ~/.vmpooler) found!' unless config abort 'No config file (./vmpooler.yaml or ~/.vmpooler) found!' unless config
vim = RbVmomi::VIM.connect( vim = RbVmomi::VIM.connect(
:host => config[ :vsphere ][ :server ], :host => config[ :vsphere ][ "server" ],
:user => config[ :vsphere ][ :username ], :user => config[ :vsphere ][ "username" ],
:password => config[ :vsphere ][ :password ], :password => config[ :vsphere ][ "password" ],
:ssl => true, :ssl => true,
:insecure => true, :insecure => true,
) or abort "Unable to connect to #{config[ :vsphere ][ :server ]}!" ) or abort "Unable to connect to #{config[ :vsphere ][ "server" ]}!"
containerView = vim.serviceContent.viewManager.CreateContainerView( { containerView = vim.serviceContent.viewManager.CreateContainerView( {
:container => vim.serviceContent.rootFolder, :container => vim.serviceContent.rootFolder,