diff --git a/provider/scaleway/scaleway.go b/provider/scaleway/scaleway.go index 8b7fc8c74..f383b92ac 100644 --- a/provider/scaleway/scaleway.go +++ b/provider/scaleway/scaleway.go @@ -66,16 +66,16 @@ func NewScalewayProvider(ctx context.Context, domainFilter endpoint.DomainFilter } } - p := &scw.Profile{} - c, err := scw.LoadConfig() - if err != nil { - log.Warnf("Cannot load config: %v", err) - } else { - p, err = c.GetActiveProfile() - if err != nil { - log.Warnf("Cannot get active profile: %v", err) - } - } + p := &scw.Profile{} + c, err := scw.LoadConfig() + if err != nil { + log.Warnf("Cannot load config: %v", err) + } else { + p, err = c.GetActiveProfile() + if err != nil { + log.Warnf("Cannot get active profile: %v", err) + } + } scwClient, err := scw.NewClient( scw.WithProfile(p),