use proper TLS transport for prometheus, log_search (#951)

This commit is contained in:
Harshavardhana
2021-08-16 12:09:03 -07:00
committed by GitHub
parent 6e1a23e0d6
commit 0980bd38e7
11 changed files with 38 additions and 49 deletions

View File

@@ -224,7 +224,7 @@ func getSubscriptionRefreshResponse(session *models.Principal) (*models.License,
ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second)
defer cancel()
client := &cluster.HTTPClient{
Client: restapi.GetConsoleSTSClient(),
Client: restapi.GetConsoleHTTPClient(),
}
licenseKey, err := retrieveLicense(context.Background(), session.STSSessionToken)
if err != nil {
@@ -280,7 +280,7 @@ func RefreshLicense() error {
return err
}
client := &cluster.HTTPClient{
Client: restapi.GetConsoleSTSClient(),
Client: restapi.GetConsoleHTTPClient(),
}
// Attempt to refresh license
_, refreshedLicenseKey, err := subscriptionRefresh(client, licenseKey)