dns/gcloud: Fix check for GCE_PROJECT when using gcloud (#752)

This commit is contained in:
bzub 2019-01-09 01:12:22 -06:00 committed by Ludovic Fernandez
parent 891b50656c
commit 3105a01a1c

View file

@ -99,7 +99,7 @@ func NewDNSProviderServiceAccount(saFile string) (*DNSProvider, error) {
// If GCE_PROJECT is non-empty it overrides the project in the service // If GCE_PROJECT is non-empty it overrides the project in the service
// account file. // account file.
project := os.Getenv("GCE_PROJECT") project := os.Getenv("GCE_PROJECT")
if project != "" { if project == "" {
// read project id from service account file // read project id from service account file
var datJSON struct { var datJSON struct {
ProjectID string `json:"project_id"` ProjectID string `json:"project_id"`