From d163c4ebc532e482cecdc9d20b4ad7c199702b66 Mon Sep 17 00:00:00 2001 From: Aolin Date: Thu, 5 Oct 2023 10:09:32 +0800 Subject: [PATCH] fix: wrong type descriptor in ProjectAWSCMEK class (#26) Fix the issue that `project.list_aws_cmek()` fails to list the AWS CMEKs in a project and reports `AttributeError: 'NoneType' object has no attribute 'value_type'`. Update the type descriptor of `region` and `kms_Arn` fields from `None` to `TiDBCloudyField(str)`. --- tidbcloudy/specification.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tidbcloudy/specification.py b/tidbcloudy/specification.py index c2f49f6..d92b300 100644 --- a/tidbcloudy/specification.py +++ b/tidbcloudy/specification.py @@ -366,8 +366,8 @@ def __repr__(self): class ProjectAWSCMEK(TiDBCloudyBase): __slots__ = ["_region", "_kms_arn"] - region: str = None - kms_arn: str = None + region: str = TiDBCloudyField(str) + kms_arn: str = TiDBCloudyField(str) def __repr__(self): return "".format(