Skip to content

Commit

Permalink
fix(netcup): allow wildcard domains
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Nov 19, 2024
1 parent 8b15e35 commit be141d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion docs/netcup.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Also keep in mind, that TTL, Expire, Retry and Refresh values of the given Domai

### Compulsory parameters

- `"domain"` is the domain to update. It can be `example.com` (root domain) or `sub.example.com` (subdomain of `example.com`).
- `"domain"` is the domain to update. It can be `example.com` (root domain) or `sub.example.com` (subdomain of `example.com`) or the wildcard `*.example.com`.
- `"api_key"` is your api key (generated in the [customercontrolpanel](https://www.customercontrolpanel.de))
- `"password"` is your api password (generated in the [customercontrolpanel](https://www.customercontrolpanel.de)). Netcup only allows one ApiPassword. This is not the account password. This password is used for all api keys.
- `"customer_number"` is your customer number (viewable in the [customercontrolpanel](https://www.customercontrolpanel.de) next to your name). As seen in the example above, provide the number as string value.
Expand Down
2 changes: 0 additions & 2 deletions internal/provider/providers/netcup/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ func validateSettings(domain, owner, customerNumber, apiKey, password string) (e
}

switch {
case owner == "*":
return fmt.Errorf("%w", errors.ErrOwnerWildcard)
case customerNumber == "":
return fmt.Errorf("%w", errors.ErrCustomerNumberNotSet)
case apiKey == "":
Expand Down

0 comments on commit be141d5

Please sign in to comment.