mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-05 17:16:59 +02:00
project id with context
Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
This commit is contained in:
parent
015497e904
commit
b5e6817ba4
@ -144,7 +144,7 @@ func NewGoogleProvider(ctx context.Context, project string, domainFilter endpoin
|
||||
}
|
||||
|
||||
if project == "" {
|
||||
mProject, mErr := metadata.ProjectID()
|
||||
mProject, mErr := metadata.ProjectIDWithContext(ctx)
|
||||
if mErr != nil {
|
||||
return nil, fmt.Errorf("failed to auto-detect the project id: %w", mErr)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user