Skip to content

Commit

Permalink
Always use insecure connections for vc client (#82)
Browse files Browse the repository at this point in the history
Signed-off-by: Deepak Kinni <dkinni@vmware.com>
  • Loading branch information
Deepak Kinni authored Jun 30, 2021
1 parent 91eeed4 commit d9486ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/common/vsphere/virtual_center.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ func (this *VirtualCenter) newClient(ctx context.Context) (*govmomi.Client, erro
log.Errorf("failed to parse URL %s with err: %v", url, err)
return nil, err
}
if this.Config.Insecure == false {
log.Warnf("The vCenter Configuration states secure connection, overriding to use insecure connection..")
this.Config.Insecure = true
// TODO: support vCenter connection using certs.
}
soapClient := soap.NewClient(url, this.Config.Insecure)
soapClient.Timeout = time.Duration(this.Config.VCClientTimeout) * time.Minute
log.Debugf("Setting vCenter soap client timeout to %v", soapClient.Timeout)
Expand Down

0 comments on commit d9486ea

Please sign in to comment.