From bdca406b2cf89f029207aa8213460ec7a3267ccc Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 8 Jul 2024 12:45:31 +0200 Subject: vm: make Instance implement io.Closer It's better to follow standard interfaces. --- vm/cuttlefish/cuttlefish.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm/cuttlefish/cuttlefish.go') diff --git a/vm/cuttlefish/cuttlefish.go b/vm/cuttlefish/cuttlefish.go index 94610ed4e..73014cf4e 100644 --- a/vm/cuttlefish/cuttlefish.go +++ b/vm/cuttlefish/cuttlefish.go @@ -160,8 +160,8 @@ func (inst *instance) Forward(port int) (string, error) { return "", fmt.Errorf("unable to forward port on device: %w", err) } -func (inst *instance) Close() { - inst.gceInst.Close() +func (inst *instance) Close() error { + return inst.gceInst.Close() } func (inst *instance) Run(timeout time.Duration, stop <-chan bool, command string) ( -- cgit mrf-deployment