浏览代码

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

Jenny Kim 9 年之前
父节点
当前提交
29587434a4
共有 1 个文件被更改,包括 1 次插入1 次删除
  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__)