Skip to content

Commit

Permalink
Create cluster failure support bundle logs
Browse files Browse the repository at this point in the history
  • Loading branch information
panktishah26 committed Oct 2, 2023
1 parent 5428b97 commit a8c2bf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/workflows/diagnostics.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package workflows
import (
"context"

"github.com/aws/eks-anywhere/pkg/features"
"github.com/aws/eks-anywhere/pkg/logger"
"github.com/aws/eks-anywhere/pkg/task"
)
Expand Down Expand Up @@ -55,7 +54,7 @@ func (s *CollectWorkloadClusterDiagnosticsTask) Name() string {
func (s *CollectMgmtClusterDiagnosticsTask) Run(ctx context.Context, commandContext *task.CommandContext) task.Task {
logger.Info("collecting management cluster diagnostics")
mgmt := commandContext.BootstrapCluster
if features.IsActive(features.ExperimentalSelfManagedClusterUpgrade()) {
if mgmt == nil {
mgmt = commandContext.ManagementCluster
}

Expand Down

0 comments on commit a8c2bf4

Please sign in to comment.