Skip to content

Commit

Permalink
fix auth while getting gpu classes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucklypriyansh-2 authored and seniorquico committed Oct 9, 2023
1 parent 1dbbe02 commit d9cacde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ func (p *SaladCloudProvider) getGPUClasses(pod *corev1.Pod) ([]string, error) {
saladClientGpuIds = append(saladClientGpuIds, gpuCleaned)
} else {
if gpuClasses == nil {
classes, _, err := p.apiClient.OrganizationDataAPI.ListGpuClasses(context.Background(), p.inputVars.OrganizationName).Execute()
classes, _, err := p.apiClient.OrganizationDataAPI.ListGpuClasses(p.contextWithAuth(), p.inputVars.OrganizationName).Execute()
if err != nil {
log.G(context.Background()).Errorf("Failed to get gpuClasses ", err)
return nil, err
Expand Down

0 comments on commit d9cacde

Please sign in to comment.