Explorar o código

HUE-4671 [fb] S3 create bucket should allow underscores in name

Jenny Kim %!s(int64=9) %!d(string=hai) anos
pai
achega
29587434a4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/libs/aws/src/aws/s3/s3fs.py

+ 1 - 1
desktop/libs/aws/src/aws/s3/s3fs.py

@@ -36,7 +36,7 @@ from aws.s3.s3stat import S3Stat
 
 DEFAULT_READ_SIZE = 1024 * 1024  # 1MB
 
-BUCKET_NAME_PATTERN = re.compile("^((?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*(?:[A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9]))$")
+BUCKET_NAME_PATTERN = re.compile("^((?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9_\-]*[a-zA-Z0-9])\.)*(?:[A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9_\-]*[A-Za-z0-9]))$")
 
 LOG = logging.getLogger(__name__)