Skip to content

Commit 7d627c8

Browse files
committed
fix(cloudflare): prevent empty key value if email is set
1 parent b72711b commit 7d627c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/providers/cloudflare/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ var (
7878

7979
func (p *Provider) isValid() error {
8080
switch {
81-
case p.key != "": // email and key must be provided
81+
case p.email != "", p.key != "": // email and key must be provided
8282
switch {
8383
case !keyRegex.MatchString(p.key):
8484
return fmt.Errorf("%w: key %q does not match regex %q",

0 commit comments

Comments
 (0)