Skip to content

Commit

Permalink
Had append targets inverted
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Jones <danj@replicated.com>
  • Loading branch information
danj-replicated committed Aug 23, 2022
1 parent 1a637f3 commit b716374
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/apis/troubleshoot/v1beta2/supportbundle_interfaces.go
Expand Up @@ -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)
}
}

0 comments on commit b716374

Please sign in to comment.