Skip to content

Commit

Permalink
fix: wrong type descriptor in ProjectAWSCMEK class (#26)
Browse files Browse the repository at this point in the history
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)`.
  • Loading branch information
Oreoxmt authored Oct 5, 2023
1 parent 40f87c0 commit d163c4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tidbcloudy/specification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<region={}, kms_arn={}>".format(
Expand Down

0 comments on commit d163c4e

Please sign in to comment.