forked from TrueCloudLab/lego
dns/gcloud: Fix check for GCE_PROJECT when using gcloud (#752)
This commit is contained in:
parent
891b50656c
commit
3105a01a1c
1 changed files with 1 additions and 1 deletions
|
@ -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"`
|
||||
|
|
Loading…
Reference in a new issue