mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 13:01:12 +00:00
Update registry. Update uuid loop figure method. Update install docs.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user