diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-11-22 17:53:36 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-11-22 17:56:48 +0100 |
| commit | 31af2ce0225268bd9d1ed27fef830debbed2a188 (patch) | |
| tree | 039b9715ba93d7e256e57a4de62692366e66879e /pkg | |
| parent | a7bbe24b6f474dba5ca701413c268fe192e44346 (diff) | |
vm/gce: fix boot output capture
Turns out GetSerialPortOutput API does not work if instance has
serial port connections enabled (which we always have).
Get output from serial port relay service instead.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/gce/gce.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/pkg/gce/gce.go b/pkg/gce/gce.go index c08ae5519..e8ad084e6 100644 --- a/pkg/gce/gce.go +++ b/pkg/gce/gce.go @@ -228,16 +228,6 @@ func (ctx *Context) DeleteImage(imageName string) error { return nil } -func (ctx *Context) GetSerialPortOutput(instance string) (string, error) { - <-ctx.apiRateGate - output, err := ctx.computeService.Instances.GetSerialPortOutput( - ctx.ProjectID, ctx.ZoneID, instance).Port(1).Do() - if err != nil { - return "", fmt.Errorf("failed to get serial port output: %v", err) - } - return output.Contents, nil -} - type resourcePoolExhaustedError string func (err resourcePoolExhaustedError) Error() string { |
