From ca64da7a15dd79f26d1d3af97459616ec96c09fe Mon Sep 17 00:00:00 2001 From: Jiaxin Yan Date: Thu, 9 Jan 2025 15:05:03 +0800 Subject: [PATCH] error init map --- api/pkg/apis/v1alpha1/vendors/stage-vendor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/pkg/apis/v1alpha1/vendors/stage-vendor.go b/api/pkg/apis/v1alpha1/vendors/stage-vendor.go index 87acca382..a76c42e37 100644 --- a/api/pkg/apis/v1alpha1/vendors/stage-vendor.go +++ b/api/pkg/apis/v1alpha1/vendors/stage-vendor.go @@ -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 {