lib: do not take mdev UUID as 17.x may get the vGPU info multiple times

- See #37
This commit is contained in:
Matt Bilker
2024-09-25 04:35:50 +00:00
parent 0d5e6d68d1
commit ba66a6c6ee

View File

@@ -539,7 +539,7 @@ fn handle_profile_override<C: VgpuConfigLike>(config: &mut C) -> bool {
}; };
let vgpu_type = format!("nvidia-{}", config.vgpu_type()); let vgpu_type = format!("nvidia-{}", config.vgpu_type());
let mdev_uuid = LAST_MDEV_UUID.lock().take(); let mdev_uuid = LAST_MDEV_UUID.lock().clone();
if let Some(config_override) = config_overrides.profile.get(vgpu_type.as_str()) { if let Some(config_override) = config_overrides.profile.get(vgpu_type.as_str()) {
info!("Applying profile {} overrides", vgpu_type); info!("Applying profile {} overrides", vgpu_type);