Skip to content

Commit aa6bcab

Browse files
committed
Use correct output dir for replicasets
1 parent cf2db49 commit aa6bcab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/collect/cluster_resources.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func (c *CollectClusterResources) Collect(progressChan chan<- interface{}) (Coll
232232
// replicasets
233233
replicasets, replicasetsErrors := replicasets(ctx, client, namespaceNames)
234234
for k, v := range replicasets {
235-
output.SaveResult(c.BundlePath, path.Join(constants.CLUSTER_RESOURCES_DIR, fmt.Sprintf("%s-errors.json", constants.CLUSTER_RESOURCES_STATEFULSETS), k), bytes.NewBuffer(v))
235+
output.SaveResult(c.BundlePath, path.Join(constants.CLUSTER_RESOURCES_DIR, constants.CLUSTER_RESOURCES_REPLICASETS, k), bytes.NewBuffer(v))
236236
}
237237
output.SaveResult(c.BundlePath, path.Join(constants.CLUSTER_RESOURCES_DIR, fmt.Sprintf("%s-errors.json", constants.CLUSTER_RESOURCES_REPLICASETS)), marshalErrors(replicasetsErrors))
238238

0 commit comments

Comments
 (0)