From d23380493918ea72e79ec3fc775c91c7aa638df2 Mon Sep 17 00:00:00 2001
From: Jiaxin Yan <jiaxinyan@microsoft.com>
Date: Mon, 20 Jan 2025 11:58:55 +0800
Subject: [PATCH] refine create state

---
 api/pkg/apis/v1alpha1/vendors/solution-vendor.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/api/pkg/apis/v1alpha1/vendors/solution-vendor.go b/api/pkg/apis/v1alpha1/vendors/solution-vendor.go
index 78ac590bf..adbbe0159 100644
--- a/api/pkg/apis/v1alpha1/vendors/solution-vendor.go
+++ b/api/pkg/apis/v1alpha1/vendors/solution-vendor.go
@@ -147,7 +147,7 @@ func (e *SolutionVendor) handleDeploymentPlan(ctx context.Context, event v1alpha
 		return err
 	}
 
-	planState := e.createPlanState(ctx, planEnvelope)
+	planState := e.createPlanState(planEnvelope)
 	lockName := api_utils.GenerateKeyLockName(planState.Namespace, planState.Deployment.Instance.ObjectMeta.Name)
 	e.SolutionManager.KeyLockProvider.TryLock(lockName)
 	log.InfoCtx(ctx, "begin to save summary for %s", planEnvelope.PlanId)
@@ -216,7 +216,7 @@ func (e *SolutionVendor) publishStepResult(ctx context.Context, target string, p
 }
 
 // create inital plan state
-func (e *SolutionVendor) createPlanState(ctx context.Context, planEnvelope PlanEnvelope) *PlanState {
+func (e *SolutionVendor) createPlanState(planEnvelope PlanEnvelope) *PlanState {
 	return &PlanState{
 		PlanId:     planEnvelope.PlanId,
 		StartTime:  time.Now(),