@@ -118,14 +118,11 @@ async def list_drives(self):
118118 results += drive .list_containers ()
119119
120120 for result in results :
121- # in case of S3 drives get region of each drive
122- if self ._config .provider == 's3' :
123- location = self ._get_drive_location (result .name )
124121 data .append (
125122 {
126123 "name" : result .name ,
127- "region" : location ,
128- "creation_date " : result .extra ["creation_date" ],
124+ "region" : self . _config . region_name ,
125+ "creationDate " : result .extra ["creation_date" ],
129126 "mounted" : False if result .name not in self ._content_managers else True ,
130127 "provider" : self ._config .provider
131128 }
@@ -141,7 +138,7 @@ async def list_drives(self):
141138 }
142139 return response
143140
144- async def mount_drive (self , drive_name , provider , region ):
141+ async def mount_drive (self , drive_name , provider ):
145142 """Mount a drive.
146143
147144 Args:
@@ -151,6 +148,8 @@ async def mount_drive(self, drive_name, provider, region):
151148 # check if content manager doesn't already exist
152149 if drive_name not in self ._content_managers or self ._content_managers [drive_name ] is None :
153150 if provider == 's3' :
151+ # get region of drive
152+ region = self ._get_drive_location (drive_name )
154153 if self ._config .session_token is None :
155154 configuration = {
156155 "aws_access_key_id" : self ._config .access_key_id ,
0 commit comments