Skip to content

Commit 6eb9381

Browse files
committed
fix(backend): 修复资源导入bug #10110
# Reviewed, transaction id: 41166
1 parent d2723b4 commit 6eb9381

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dbm-ui/backend/db_services/dbresource/handlers.py

+3
Original file line numberDiff line numberDiff line change
@@ -516,5 +516,8 @@ def standardized_resource_host(cls, hosts):
516516
os_name=host.get("bk_os_name"),
517517
os_type=host.get("bk_os_type"),
518518
device_class=host.get("svr_device_class"),
519+
bk_cpu=host.get("bk_cpu") or 0,
520+
bk_mem=host.get("bk_mem") or 0,
521+
bk_disk=host.get("bk_disk") or 0,
519522
)
520523
return hosts

0 commit comments

Comments
 (0)