Use existing jwtConf instead of creating a scoped one
Signed-off-by: Huu Nguyen <whoshuu@gmail.com>
This commit is contained in:
parent
f9187b2572
commit
69299d93d9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue