fix: ensure provider is set

This commit is contained in:
decentral1se 2021-10-25 20:01:20 +02:00
parent bdae61ed51
commit 4d2a2d42fb
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -29,6 +29,10 @@ You must specify a zone (e.g. example.com) under which your domain name records
are listed. This zone must already be created on your provider account. are listed. This zone must already be created on your provider account.
`, `,
Action: func(c *cli.Context) error { Action: func(c *cli.Context) error {
if err := internal.EnsureDNSProvider(); err != nil {
logrus.Fatal(err)
}
zone, err := internal.EnsureZoneArgument(c) zone, err := internal.EnsureZoneArgument(c)
if err != nil { if err != nil {
logrus.Fatal(err) logrus.Fatal(err)