Use existing jwtConf instead of creating a scoped one

Signed-off-by: Huu Nguyen <whoshuu@gmail.com>
This commit is contained in:
Huu Nguyen 2018-05-07 15:04:06 -07:00 committed by Ryan Abrams
parent f9187b2572
commit 69299d93d9

View file

@ -177,7 +177,7 @@ func FromParameters(parameters map[string]interface{}) (storagedriver.StorageDri
return nil, fmt.Errorf("Failed to marshal gcs credentials to json")
}
jwtConf, err := google.JWTConfigFromJSON(data, storage.ScopeFullControl)
jwtConf, err = google.JWTConfigFromJSON(data, storage.ScopeFullControl)
if err != nil {
return nil, err
}