mirror of
https://github.com/rclone/rclone.git
synced 2025-12-24 04:04:37 +00:00
gcs: Don't configure the oauth token if service_account_file is supplied
This commit is contained in:
@@ -62,6 +62,9 @@ func init() {
|
||||
Description: "Google Cloud Storage (this is not Google Drive)",
|
||||
NewFs: NewFs,
|
||||
Config: func(name string) {
|
||||
if fs.ConfigFile.MustValue(name, "service_account_file") != "" {
|
||||
return
|
||||
}
|
||||
err := oauthutil.Config("google cloud storage", name, storageConfig)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to configure token: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user