From bf3065e726c7b0fc4be5122fa9f94ff662ec47d2 Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Sun, 12 Nov 2023 21:01:53 +0100 Subject: [PATCH] fix: load config file --- provider/scaleway/scaleway.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/provider/scaleway/scaleway.go b/provider/scaleway/scaleway.go index 545879902..99f42c1fd 100644 --- a/provider/scaleway/scaleway.go +++ b/provider/scaleway/scaleway.go @@ -65,7 +65,13 @@ func NewScalewayProvider(ctx context.Context, domainFilter endpoint.DomainFilter defaultPageSize = 1000 } } - p, _ := scw.LoadConfig().GetActiveProfile() + + p := &scw.Profile{} + c, err := scw.LoadConfig() + if err == nil { + p, _ = c.GetActiveProfile() + } + scwClient, err := scw.NewClient( scw.WithProfile(p), scw.WithEnv(),