Skip to content

Commit

Permalink
fix(hdfs): hdfs集群地域信息维护 #5403
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyao963 authored and zhangzhw8 committed Jul 9, 2024
1 parent fc37ce4 commit d166686
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbm-ui/backend/db_meta/api/cluster/hdfs/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def create(
db_module_id: int,
storages: Optional[List] = None,
creator: str = "",
region: str = "",
) -> Cluster:
"""
注册 HDFS 集群
Expand All @@ -70,6 +71,7 @@ def create(
db_module_id=db_module_id,
creator=creator,
bk_cloud_id=bk_cloud_id,
region=region,
)

cluster_entry = ClusterEntry.objects.create(
Expand Down
1 change: 1 addition & 0 deletions dbm-ui/backend/flow/utils/hdfs/hdfs_db_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def hdfs_apply(self) -> bool:
"major_version": self.ticket_data["db_version"],
"storages": storage_instances,
"creator": self.ticket_data["created_by"],
"region": self.ticket_data["city_code"],
}

with atomic():
Expand Down

0 comments on commit d166686

Please sign in to comment.