Skip to content

Commit

Permalink
dns/gcloud: Fix check for GCE_PROJECT when using gcloud
Browse files Browse the repository at this point in the history
Fixes a typo from go-acme#750 so that GCE_PROJECT is actually used.
  • Loading branch information
bzub authored Jan 8, 2019
1 parent c938de6 commit 3f66a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/dns/gcloud/googlecloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 3f66a74

Please sign in to comment.