gcloud: More detailed information about Google Cloud DNS. (#761)

This commit is contained in:
Ludovic Fernandez 2019-01-16 21:01:53 +01:00 committed by GitHub
parent ec6c22d70b
commit a43ec709e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@ func NewDNSProvider() (*DNSProvider, error) {
}
// Use default credentials.
project := os.Getenv("GCE_PROJECT")
project := env.GetOrDefaultString("GCE_PROJECT", "")
return NewDNSProviderCredentials(project)
}
@ -98,7 +98,7 @@ func NewDNSProviderServiceAccount(saFile string) (*DNSProvider, error) {
// If GCE_PROJECT is non-empty it overrides the project in the service
// account file.
project := os.Getenv("GCE_PROJECT")
project := env.GetOrDefaultString("GCE_PROJECT", "")
if project == "" {
// read project id from service account file
var datJSON struct {