aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/instance/instance.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/instance/instance.go')
-rw-r--r--pkg/instance/instance.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go
index d88838576..39de02017 100644
--- a/pkg/instance/instance.go
+++ b/pkg/instance/instance.go
@@ -6,7 +6,6 @@
package instance
import (
- "bytes"
"encoding/json"
"fmt"
"net"
@@ -245,11 +244,7 @@ func (inst *inst) test() error {
rep := inst.reporter.Parse(testErr.Output)
if rep != nil && rep.Type == report.UnexpectedReboot {
// Avoid detecting any boot crash as "unexpected kernel reboot".
- output := testErr.Output[rep.EndPos:]
- if pos := bytes.IndexByte(testErr.Output[rep.StartPos:], '\n'); pos != -1 {
- output = testErr.Output[rep.StartPos+pos:]
- }
- rep = inst.reporter.Parse(output)
+ rep = inst.reporter.Parse(testErr.Output[rep.SkipPos:])
}
if rep == nil {
rep = &report.Report{