Skip to content

Commit

Permalink
Use existing jwtConf instead of creating a scoped one
Browse files Browse the repository at this point in the history
Signed-off-by: Huu Nguyen <[email protected]>
  • Loading branch information
whoshuu authored and caervs committed Sep 5, 2018
1 parent f9187b2 commit 69299d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/storage/driver/gcs/gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 69299d9

Please sign in to comment.