Skip to content

Commit

Permalink
Extend optional disabling of TLS verification to the flow client
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Brown authored and frousselet committed Aug 18, 2023
1 parent e7bacdf commit bdaac0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ BUG FIXES:

* data/opennebula_template: fix filtering (#479)

ENHANCEMENTS:

* provider: `insecure` attribute now also skips TLS verification for the flow client (#482)

# 1.3.0 (July 28th, 2023)

FEATURES:
Expand Down
5 changes: 3 additions & 2 deletions opennebula/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,11 @@ func providerConfigure(ctx context.Context, d *schema.ResourceData) (interface{}

flowEndpoint, ok := d.GetOk("flow_endpoint")
if ok {
flowClient := goca.NewDefaultFlowClient(
flowClient := goca.NewFlowClient(
goca.NewFlowConfig(username.(string),
password.(string),
flowEndpoint.(string)))
flowEndpoint.(string)),
&http.Client{Transport: tr})

cfg.Controller = goca.NewGenericController(oneClient, flowClient)
return cfg, nil
Expand Down

0 comments on commit bdaac0e

Please sign in to comment.