From b716374070244045acfcb8363dc8c64e967b26f9 Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Tue, 23 Aug 2022 13:13:30 +0100 Subject: [PATCH] Had append targets inverted Signed-off-by: Dan Jones --- .../troubleshoot/v1beta2/supportbundle_interfaces.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/apis/troubleshoot/v1beta2/supportbundle_interfaces.go b/pkg/apis/troubleshoot/v1beta2/supportbundle_interfaces.go index 94aba4db8..bdaf111d6 100644 --- a/pkg/apis/troubleshoot/v1beta2/supportbundle_interfaces.go +++ b/pkg/apis/troubleshoot/v1beta2/supportbundle_interfaces.go @@ -2,18 +2,18 @@ package v1beta2 func (s *SupportBundle) ConcatSpec(bundle *SupportBundle) { for _, v := range bundle.Spec.Collectors { - s.Spec.Collectors = append(bundle.Spec.Collectors, v) + s.Spec.Collectors = append(s.Spec.Collectors, v) } for _, v := range bundle.Spec.AfterCollection { - s.Spec.AfterCollection = append(bundle.Spec.AfterCollection, v) + s.Spec.AfterCollection = append(s.Spec.AfterCollection, v) } for _, v := range bundle.Spec.HostCollectors { - s.Spec.HostCollectors = append(bundle.Spec.HostCollectors, v) + s.Spec.HostCollectors = append(s.Spec.HostCollectors, v) } for _, v := range bundle.Spec.HostAnalyzers { - s.Spec.HostAnalyzers = append(bundle.Spec.HostAnalyzers, v) + s.Spec.HostAnalyzers = append(s.Spec.HostAnalyzers, v) } for _, v := range bundle.Spec.Analyzers { - s.Spec.Analyzers = append(bundle.Spec.Analyzers, v) + s.Spec.Analyzers = append(s.Spec.Analyzers, v) } }