Update registry. Update uuid loop figure method. Update install docs.

This commit is contained in:
Xuwznln
2025-10-12 22:38:04 +08:00
parent 40fb1ea49c
commit 9fa3688196
8 changed files with 285 additions and 65 deletions

View File

@@ -1060,6 +1060,8 @@ class DeviceNodeResourceTracker(object):
else:
# 对于实例类型,需要特殊处理 uuid 字段
# 如果查找的是 unilabos_uuid使用 getattr
if identifier_key == "uuid":
identifier_key = "unilabos_uuid"
if hasattr(resource, identifier_key):
if getattr(resource, identifier_key) == compare_value:
res_list.append((parent_res, resource))