Skip to content

Commit

Permalink
Update pkg/collect/runner.go
Browse files Browse the repository at this point in the history
Co-authored-by: Evans Mungai <[email protected]>
  • Loading branch information
hedge-sparrow and banjoh authored Oct 30, 2024
1 parent 87596db commit b4ea4a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/collect/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ func getContainerLogsInternal(ctx context.Context, client kubernetes.Interface,
if err != nil {
return nil, err
}
if strings.Contains(string(logs), "Internal Error") {
if bytes.Contains(logs, []byte("Internal Error")) {

Check failure on line 354 in pkg/collect/runner.go

View workflow job for this annotation

GitHub Actions / test-integration

undefined: bytes

Check failure on line 354 in pkg/collect/runner.go

View workflow job for this annotation

GitHub Actions / test

undefined: bytes

Check failure on line 354 in pkg/collect/runner.go

View workflow job for this annotation

GitHub Actions / compile-preflight

undefined: bytes

Check failure on line 354 in pkg/collect/runner.go

View workflow job for this annotation

GitHub Actions / compile-collect

undefined: bytes

Check failure on line 354 in pkg/collect/runner.go

View workflow job for this annotation

GitHub Actions / compile-supportbundle

undefined: bytes

Check failure on line 354 in pkg/collect/runner.go

View workflow job for this annotation

GitHub Actions / goreleaser-test (amd64, darwin)

undefined: bytes

Check failure on line 354 in pkg/collect/runner.go

View workflow job for this annotation

GitHub Actions / goreleaser-test (arm, linux)

undefined: bytes
return nil, fmt.Errorf("Fetched log contains \"Internal Error\": %q", string(logs))
}

Expand Down

0 comments on commit b4ea4a5

Please sign in to comment.