GCLOUD: Don't panic() on unknown domain name (#944)

* GCLOUD: Dont panic on unknown domains
This commit is contained in:
Tom Limoncelli 2020-11-13 13:12:36 -05:00 committed by GitHub
parent 184131b1e3
commit 654bb9cfeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,8 +125,9 @@ func (g *gcloudProvider) GetNameservers(domain string) ([]*models.Nameserver, er
if err != nil {
return nil, err
}
//fmt.Printf("zone = %q\n", zone)
//fmt.Printf("zone.NameServers = %q\n", zone.NameServers)
if zone == nil {
return nil, fmt.Errorf("Domain %q not found in your GCLOUD account", domain)
}
return models.ToNameserversStripTD(zone.NameServers)
}