mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-10-24 16:21:01 +02:00
fix: load config file
This commit is contained in:
parent
811b425672
commit
bf3065e726
@ -65,7 +65,13 @@ func NewScalewayProvider(ctx context.Context, domainFilter endpoint.DomainFilter
|
|||||||
defaultPageSize = 1000
|
defaultPageSize = 1000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
p, _ := scw.LoadConfig().GetActiveProfile()
|
|
||||||
|
p := &scw.Profile{}
|
||||||
|
c, err := scw.LoadConfig()
|
||||||
|
if err == nil {
|
||||||
|
p, _ = c.GetActiveProfile()
|
||||||
|
}
|
||||||
|
|
||||||
scwClient, err := scw.NewClient(
|
scwClient, err := scw.NewClient(
|
||||||
scw.WithProfile(p),
|
scw.WithProfile(p),
|
||||||
scw.WithEnv(),
|
scw.WithEnv(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user