From cf621e5b2457ad4fc93bba10c075509925550465 Mon Sep 17 00:00:00 2001
From: Vitaliy Filippov <vitalif@yourcmc.ru>
Date: Tue, 27 Jul 2021 13:53:34 +0300
Subject: [PATCH] Remove default region

---
 pkg/mounter/geesefs.go | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/pkg/mounter/geesefs.go b/pkg/mounter/geesefs.go
index 6c6d291..f3e6e53 100644
--- a/pkg/mounter/geesefs.go
+++ b/pkg/mounter/geesefs.go
@@ -9,7 +9,6 @@ import (
 
 const (
 	geesefsCmd    = "geesefs"
-	defaultRegion = "us-east-1"
 )
 
 // Implements Mounter
@@ -22,15 +21,10 @@ type geesefsMounter struct {
 }
 
 func newGeeseFSMounter(meta *s3.FSMeta, cfg *s3.Config) (Mounter, error) {
-	region := cfg.Region
-	// if endpoint is set we need a default region
-	if region == "" && cfg.Endpoint != "" {
-		region = defaultRegion
-	}
 	return &geesefsMounter{
 		meta:            meta,
 		endpoint:        cfg.Endpoint,
-		region:          region,
+		region:          cfg.Region,
 		accessKeyID:     cfg.AccessKeyID,
 		secretAccessKey: cfg.SecretAccessKey,
 	}, nil