code changed recently so that sometimes the conf is nil.

This commit is contained in:
Megan Marsh 2019-07-29 13:19:43 -07:00
parent 903a422020
commit 7c93a5c51e
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ func NewClientGCE(conf *jwt.Config) (*http.Client, error) {
var client *http.Client
// Auth with AccountFile first if provided
if len(conf.PrivateKey) > 0 {
if conf != nil && len(conf.PrivateKey) > 0 {
log.Printf("[INFO] Requesting Google token via account_file...")
log.Printf("[INFO] -- Email: %s", conf.Email)
log.Printf("[INFO] -- Scopes: %s", DriverScopes)