Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 82ddcae

Browse files
authored
Merge pull request #504 from laijs/small-fix
hypervisor.GetVm() returns nil when error
2 parents 1bf1556 + 24bae6c commit 82ddcae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hypervisor/vm.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ func GetVm(vmId string, b *BootConfig, waitStarted bool) (*Vm, error) {
751751
return nil, false
752752
}, -1); err != nil {
753753
vm.Kill()
754+
return nil, err
754755
}
755756
}
756757

0 commit comments

Comments
 (0)