refactor: remove using resourceName to determine is vGPU device (#741)

This commit is contained in:
Andy Lee authored and GitHub committed 2026-03-18 10:35:47 +08:00
1 parent 519c7d9f1f
commit 5aea476f64
1 file changed
+1 -1
@@ -58,7 +58,7 @@ export default class PCIDevice extends SteveModel {
return false; return false;
} }
return !!this.metadata?.labels?.[HCI_ANNOTATIONS.PARENT_SRIOV_GPU] || this.status?.resourceName.includes('nvidia.com'); return !!this.metadata?.labels?.[HCI_ANNOTATIONS.PARENT_SRIOV_GPU];
} }
get canYaml() { get canYaml() {