Skip to content

Commit f6047b0

Browse files
IBM-DeekshaDeeksha Sharma
andauthored
fix connector client usage (IBM-Cloud#6223)
Co-authored-by: Deeksha Sharma <[email protected]>
1 parent 1ec1a85 commit f6047b0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ibm/conns/config.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,13 +1676,11 @@ func (c *Config) ClientSession() (interface{}, error) {
16761676

16771677
// Construct the service connector client.
16781678
session.backupRecoveryConnectorClient, err = backuprecoveryv1.NewBackupRecoveryV1Connector(backupRecoveryConnectorClientOptions)
1679-
tr := &gohttp.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}}
1680-
session.backupRecoveryConnectorClient.Service.Client.Transport = tr
16811679
if err == nil {
16821680
// Enable retries for API calls
1683-
session.backupRecoveryClient.Service.EnableRetries(c.RetryCount, c.RetryDelay)
1681+
session.backupRecoveryConnectorClient.Service.EnableRetries(c.RetryCount, c.RetryDelay)
16841682
// Add custom header for analytics
1685-
session.backupRecoveryClient.SetDefaultHeaders(gohttp.Header{
1683+
session.backupRecoveryConnectorClient.SetDefaultHeaders(gohttp.Header{
16861684
"X-Original-User-Agent": {fmt.Sprintf("terraform-provider-ibm/%s", version.Version)},
16871685
})
16881686
} else {

0 commit comments

Comments
 (0)