Skip to content

Commit a92d267

Browse files
committed
fix: 修复无法更新tenant_id问题 (closed #2708)
1 parent b82f024 commit a92d267

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/backend/components/collections/agent_new/add_or_update_hosts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def handle_update_db(self, sub_insts: List[models.SubscriptionInstanceRecord]):
549549
host_objs_to_be_updated,
550550
fields=["bk_biz_id", "bk_cloud_id", "bk_addressing", "os_type", "node_type"]
551551
+ ["inner_ip", "inner_ipv6", "outer_ip", "outer_ipv6", "login_ip", "data_ip"]
552-
+ ["is_manual", "ap_id", "install_channel_id", "upstream_nodes", "updated_at", "extra_data"],
552+
+ ["is_manual", "ap_id", "install_channel_id", "upstream_nodes", "updated_at", "extra_data", "tenant_id"],
553553
batch_size=self.batch_size,
554554
)
555555
models.ProcessStatus.objects.bulk_create(proc_status_objs_to_be_created, batch_size=self.batch_size)

0 commit comments

Comments
 (0)