40
41
// It should be called just before an agent exits, so that
41
42
// it will restart running the new tools.
42
43
func (e *UpgradeReadyError) ChangeAgentTools() error {
43
tools, err := tools.ChangeAgentTools(e.DataDir, e.AgentName, e.NewTools.Version)
44
tools, err := agenttools.ChangeAgentTools(e.DataDir, e.AgentName, e.NewTools.Version)