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 committed Oct 9, 2023
1 parent f67e09b commit b7fb3e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ func (p *SaladCloudProvider) getCountryCodes(pod *corev1.Pod) ([]saladclient.Cou
}
countryCodes = append(countryCodes, *cc)
}
if len(countryCodes) == 0 {
countryCodes = append(countryCodes, "us")
}
return countryCodes, nil
}

Expand Down

0 comments on commit b7fb3e7

Please sign in to comment.