From b7fb3e72a7e48d3bc1e930a95589b0c269c5fff3 Mon Sep 17 00:00:00 2001 From: lucklypriyansh-2 Date: Mon, 9 Oct 2023 14:31:12 +0530 Subject: [PATCH] fix auth while getting gpu classes --- internal/provider/provider.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index d5d9b24..b248074 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -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 }