Skip to content

Commit

Permalink
dns/gcloud: Fix check for GCE_PROJECT when using gcloud (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzub authored and ldez committed Jan 9, 2019
1 parent 891b506 commit 3105a01
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 3105a01

Please sign in to comment.