Change default vsphere connection behavior

This commit changes the vsphere connection behavior to set insecure false. Without this change insecure is always set to true when making a connection regardless of the setting provided with the provider configuration.
This commit is contained in:
kirby@puppetlabs.com 2018-06-08 12:40:03 -07:00
parent 00970ffc9e
commit af8b73b6c9
2 changed files with 2 additions and 2 deletions

View file

@ -410,7 +410,7 @@ module Vmpooler
connection = RbVmomi::VIM.connect host: provider_config['server'],
user: provider_config['username'],
password: provider_config['password'],
insecure: provider_config['insecure'] || true
insecure: provider_config['insecure'] || false
metrics.increment('connect.open')
return connection
rescue => err