(maint) Update template delta script for moved vsphere credentials

The vmpooler.yaml file has been reorganized a bit and now nests the
vsphere credentials within a "providers" class. This tweak is needed
to keep the template delta script working.
This commit is contained in:
Scott Garman 2017-08-02 14:48:11 -07:00
parent d789dfdfc8
commit 3efce8d4e7

View file

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