Skip to content

Commit

Permalink
error init map
Browse files Browse the repository at this point in the history
  • Loading branch information
yanjiaxin534 committed Jan 9, 2025
1 parent fb4384d commit ca64da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/pkg/apis/v1alpha1/vendors/stage-vendor.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ func (s *StageVendor) saveStepResult(ctx context.Context, planState *PlanState,
// Handle error case and update the target result status and message
targetResultStatus := fmt.Sprintf("%s Failed", deploymentTypeMap[planState.Remove])
targetResultMessage := fmt.Sprintf("Failed to create provider %s, err: %s", deploymentTypeMap[planState.Remove], stepResult.Error)
targetResultSpec := model.TargetResultSpec{Status: targetResultStatus, Message: targetResultMessage}
targetResultSpec := model.TargetResultSpec{Status: targetResultStatus, Message: targetResultMessage, ComponentResults: stepResult.ApplyResult}
planState.Summary.UpdateTargetResult(stepResult.Target, targetResultSpec)
planState.Summary.AllAssignedDeployed = false
for _, ret := range stepResult.ApplyResult {
Expand Down

0 comments on commit ca64da7

Please sign in to comment.