Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate old Azure SDKs into to use github.com/Azure/azure-sdk-for-go/sdk/azidentity #5471

Merged
merged 26 commits into from
Jul 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typo
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
  • Loading branch information
JorTurFer committed Jul 24, 2024
commit a6b19564a5c5ad0218e9346aceb288fb22d7fffd
2 changes: 1 addition & 1 deletion pkg/scalers/azure_log_analytics_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func (s *azureLogAnalyticsScaler) getMetricData(ctx context.Context) (float64, e
if len(response.Tables[0].Rows[0]) > 0 {
metricDataType := response.Tables[0].Columns[0].Type
metricVal := response.Tables[0].Rows[0][0]
if metricDataType != nil || metricVal == nil {
if metricDataType == nil || metricVal == nil {
return -1, fmt.Errorf("error parsing the response %w", err)
}
parsedMetricVal, err := parseTableValueToFloat64(metricVal, *metricDataType)
Expand Down