mirror of
https://github.com/rclone/rclone.git
synced 2025-02-15 18:10:31 +01:00
zoho: fix error when region isn't set
This commit is contained in:
parent
9e2e2bb5fc
commit
572c6ad601
@ -161,7 +161,7 @@ type Object struct {
|
|||||||
|
|
||||||
func setupRegion(m configmap.Mapper) {
|
func setupRegion(m configmap.Mapper) {
|
||||||
region, ok := m.Get("region")
|
region, ok := m.Get("region")
|
||||||
if !ok {
|
if !ok || region == "" {
|
||||||
log.Fatalf("No region set\n")
|
log.Fatalf("No region set\n")
|
||||||
}
|
}
|
||||||
rootURL = fmt.Sprintf("https://workdrive.zoho.%s/api/v1", region)
|
rootURL = fmt.Sprintf("https://workdrive.zoho.%s/api/v1", region)
|
||||||
|
Loading…
Reference in New Issue
Block a user