mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
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:
parent
b60ceb12bf
commit
61bbb798ca
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue