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

(cherry picked from commit 5aea476f64)

Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
mergify[bot]andAndy Lee authored and GitHub committed 2026-03-18 17:16:28 +08:00
1 parent dde58269d5
commit 0441c1f6e3
1 file changed
+1 -1
@@ -58,7 +58,7 @@ export default class PCIDevice extends SteveModel {
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() {