Skip to content

Commit

Permalink
Make DNS provider accept credentials from config file
Browse files Browse the repository at this point in the history
  • Loading branch information
1lann committed Jul 30, 2020
1 parent 67b9a15 commit b49f1c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caskettls/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func setupTLS(c *casket.Controller) error {
onDemand = true
case "dns":
args := c.RemainingArgs()
if len(args) != 1 {
if len(args) < 1 {
return c.ArgErr()
}
// TODO: we can get rid of DNS provider plugins with this one line
Expand All @@ -250,7 +250,7 @@ func setupTLS(c *casket.Controller) error {
if !ok {
return c.Errf("Unknown DNS provider by name '%s'", dnsProvName)
}
dnsProv, err := dnsProvConstructor()
dnsProv, err := dnsProvConstructor(args[1:]...)
if err != nil {
return c.Errf("Setting up DNS provider '%s': %v", dnsProvName, err)
}
Expand Down

0 comments on commit b49f1c5

Please sign in to comment.