mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 16:27:50 +00:00
virtcontainers: Fix error message in mockHypervisor
The error raised by toGrpc() mentions Firecracker instead of mockHypervisor, which is incorrect; the fromGrpc() functions right above it gets this right. Fixes: #2424 Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
f1f9414a59
commit
693ad23846
@ -112,7 +112,7 @@ func (m *mockHypervisor) fromGrpc(ctx context.Context, hypervisorConfig *Hypervi
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *mockHypervisor) toGrpc() ([]byte, error) {
|
func (m *mockHypervisor) toGrpc() ([]byte, error) {
|
||||||
return nil, errors.New("firecracker is not supported by VM cache")
|
return nil, errors.New("mockHypervisor is not supported by VM cache")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *mockHypervisor) save() (s persistapi.HypervisorState) {
|
func (m *mockHypervisor) save() (s persistapi.HypervisorState) {
|
||||||
|
Loading…
Reference in New Issue
Block a user