mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-03 13:44:22 +01:00
agent/device: Correct misleading error message in update_spec_device()
This error is returned if we have information for a device from the runtime, but a matching device does not appear in the OCI spec. However, the name for the device we print is the name from the VM, rather than the name from the container which is what we actually expect in the spec. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
@@ -511,8 +511,8 @@ fn update_spec_device(
|
||||
Ok(())
|
||||
} else {
|
||||
Err(anyhow!(
|
||||
"Should have found a matching device {} in the spec",
|
||||
vm_path
|
||||
"Should have found a device {} in the spec",
|
||||
host_path
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user