From 69299d93d9b324ad2a7d9c9081f280f1e74ce74f Mon Sep 17 00:00:00 2001 From: Huu Nguyen Date: Mon, 7 May 2018 15:04:06 -0700 Subject: [PATCH] Use existing jwtConf instead of creating a scoped one Signed-off-by: Huu Nguyen --- registry/storage/driver/gcs/gcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/storage/driver/gcs/gcs.go b/registry/storage/driver/gcs/gcs.go index b6784487..07f58afa 100644 --- a/registry/storage/driver/gcs/gcs.go +++ b/registry/storage/driver/gcs/gcs.go @@ -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 }