|
@@ -137,8 +137,10 @@ class S3FileSystem(object):
|
|
|
raise S3FileSystemException(e.message or e.reason)
|
|
raise S3FileSystemException(e.message or e.reason)
|
|
|
|
|
|
|
|
def _get_location(self):
|
|
def _get_location(self):
|
|
|
- if get_default_region() in (Location.EU, Location.EUCentral1, Location.USWest, Location.USWest2, Location.SAEast,
|
|
|
|
|
- Location.APNortheast, Location.APSoutheast, Location.APSoutheast2, Location.CNNorth1):
|
|
|
|
|
|
|
+ if get_default_region() in (Location.EU, Location.EUCentral, Location.EUWest, Location.EUWest2,
|
|
|
|
|
+ Location.CACentral, Location.USEast, Location.USEast2, Location.USWest,
|
|
|
|
|
+ Location.USWest2, Location.SAEast, Location.APNortheast, Location.APNortheast2,
|
|
|
|
|
+ Location.APSoutheast, Location.APSoutheast2, Location.APSouth):
|
|
|
return get_default_region()
|
|
return get_default_region()
|
|
|
else:
|
|
else:
|
|
|
return Location.DEFAULT
|
|
return Location.DEFAULT
|