diff --git a/providers/dns/gcloud/googlecloud.go b/providers/dns/gcloud/googlecloud.go index c0d1d918..3efd4a25 100644 --- a/providers/dns/gcloud/googlecloud.go +++ b/providers/dns/gcloud/googlecloud.go @@ -99,7 +99,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") - if project != "" { + if project == "" { // read project id from service account file var datJSON struct { ProjectID string `json:"project_id"`