Skip to content

Commit

Permalink
fix colleectors count
Browse files Browse the repository at this point in the history
  • Loading branch information
DexterYan committed Oct 23, 2024
1 parent 775738d commit 5b6350b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions pkg/supportbundle/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"net/http"
"os"
"reflect"
"time"

"github.com/pkg/errors"
Expand Down Expand Up @@ -73,9 +72,6 @@ func executeUpdateRoutine(bundle *types.SupportBundle) chan interface{} {
return
}

fmt.Println(msg)
fmt.Println(reflect.TypeOf(msg))

switch val := msg.(type) {
case error:
// Errors could be expected with RBAC, just log and continue
Expand Down
2 changes: 1 addition & 1 deletion pkg/supportbundle/supportbundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func CreateSupportBundleDependencies(app *apptypes.App, sequence int64, opts typ
URI: GetSpecURI(app.GetSlug()),
RedactURIs: redactURIs,
Progress: types.SupportBundleProgress{
CollectorCount: len(supportBundle.Spec.Collectors),
CollectorCount: len(supportBundle.Spec.Collectors) + len(supportBundle.Spec.HostCollectors),
},
}

Expand Down

0 comments on commit 5b6350b

Please sign in to comment.