From 5b6350b53bdef4daa0ec23407b08f92fdf26933d Mon Sep 17 00:00:00 2001 From: Dexter Yan Date: Thu, 24 Oct 2024 11:50:27 +1300 Subject: [PATCH] fix colleectors count --- pkg/supportbundle/execute.go | 4 ---- pkg/supportbundle/supportbundle.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/supportbundle/execute.go b/pkg/supportbundle/execute.go index 567dec10a8..7eee4a958f 100644 --- a/pkg/supportbundle/execute.go +++ b/pkg/supportbundle/execute.go @@ -5,7 +5,6 @@ import ( "fmt" "net/http" "os" - "reflect" "time" "github.com/pkg/errors" @@ -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 diff --git a/pkg/supportbundle/supportbundle.go b/pkg/supportbundle/supportbundle.go index 0584fe1278..3dace009f5 100644 --- a/pkg/supportbundle/supportbundle.go +++ b/pkg/supportbundle/supportbundle.go @@ -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), }, }