From a0f7a5e7bc1f00689914672dc84eb234579cbffc Mon Sep 17 00:00:00 2001 From: rainzm Date: Fri, 14 May 2021 19:04:15 +0800 Subject: [PATCH] fix(esxiagent): execute deploy operation by default in AgentDeployGuest --- pkg/hostman/storageman/storage_agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/hostman/storageman/storage_agent.go b/pkg/hostman/storageman/storage_agent.go index c09f52427f..2e07eea668 100644 --- a/pkg/hostman/storageman/storage_agent.go +++ b/pkg/hostman/storageman/storage_agent.go @@ -195,7 +195,7 @@ func (as *SAgentStorage) AgentDeployGuest(ctx context.Context, data interface{}) dataDict := data.(*jsonutils.JSONDict) action, _ := dataDict.GetString("action") var ( - needDeploy bool + needDeploy = true err error ) if action == "create" {