diff --git a/internal/provider/providers/ionos/provider.go b/internal/provider/providers/ionos/provider.go index ec1c9767d..49ff02074 100644 --- a/internal/provider/providers/ionos/provider.go +++ b/internal/provider/providers/ionos/provider.go @@ -32,7 +32,7 @@ func New(data json.RawMessage, domain, owner string, return nil, fmt.Errorf("decoding ionos extra settings: %w", err) } - err = validateSettings(domain, p.apiKey) + err = validateSettings(domain, extraSettings.APIKey) if err != nil { return nil, fmt.Errorf("validating provider specific settings: %w", err) }