Skip to content

Commit

Permalink
summary is point
Browse files Browse the repository at this point in the history
  • Loading branch information
yanjiaxin534 committed Jan 21, 2025
1 parent ee4253f commit 3239a6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/pkg/apis/v1alpha1/managers/solution/message_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type PlanState struct {
ExpireTime time.Time `json:"expireTime"`
TotalSteps int `json:"totalSteps"`
CompletedSteps int `json:"completedSteps"`
Summary model.SummarySpec `json:"summary"`
Summary *model.SummarySpec `json:"summary"`
MergedState model.DeploymentState `json:"mergedState"`
Deployment model.DeploymentSpec `json:"deployment"`
CurrentState model.DeploymentState `json:"currentState"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func createPlanState(planEnvelope PlanEnvelope) *PlanState {
StartTime: time.Now(),
TotalSteps: len(planEnvelope.Plan.Steps),
Phase: planEnvelope.Phase,
Summary: model.SummarySpec{
Summary: &model.SummarySpec{
TargetResults: make(map[string]model.TargetResultSpec),
TargetCount: len(planEnvelope.Deployment.Targets),
SuccessCount: 0,
Expand Down

0 comments on commit 3239a6e

Please sign in to comment.