diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-03-21 16:08:02 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-03-21 16:08:02 +0100 |
| commit | d60b9c6b0ec77c5d458a17467f1b4939cc2f6812 (patch) | |
| tree | cfc0a0b8ada856f1150d73700645e0e61c72ff74 /vm/gce | |
| parent | a2d5b1c04d22c7db220cc795dc2b4d48b17437be (diff) | |
vm/vmimpl: refactor DiagnoseFree/OpenBSD
Make signatures of these functions match vm.Diagnose.
Both more flexible, less code, more reasonable.
Diffstat (limited to 'vm/gce')
| -rw-r--r-- | vm/gce/gce.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/gce/gce.go b/vm/gce/gce.go index 98ab494dd..097bcd707 100644 --- a/vm/gce/gce.go +++ b/vm/gce/gce.go @@ -371,10 +371,10 @@ func waitForConsoleConnect(merger *vmimpl.OutputMerger) error { func (inst *instance) Diagnose() ([]byte, bool) { if inst.env.OS == "freebsd" { - return nil, vmimpl.DiagnoseFreeBSD(inst.consolew) + return vmimpl.DiagnoseFreeBSD(inst.consolew) } if inst.env.OS == "openbsd" { - return nil, vmimpl.DiagnoseOpenBSD(inst.consolew) + return vmimpl.DiagnoseOpenBSD(inst.consolew) } return nil, false } |
