Use existing jwtConf instead of creating a scoped one
Signed-off-by: Huu Nguyen <whoshuu@gmail.com>master
							parent
							
								
									f9187b2572
								
							
						
					
					
						commit
						69299d93d9
					
				|  | @ -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 New Issue