diff --git a/agent-go/register/AgentIntitilization.go b/agent-go/register/AgentIntitilization.go index 36ad407..d833585 100644 --- a/agent-go/register/AgentIntitilization.go +++ b/agent-go/register/AgentIntitilization.go @@ -152,7 +152,9 @@ func parseAgentServerInfo() *config.AgentServerInfo { // 约定文件地址为 /etc/environment.d/octopus-agent.conf // 目前使用 var agentServerInfo *config.AgentServerInfo - yamlFile, err := ioutil.ReadFile("C:\\Users\\wdd\\IdeaProjects\\ProjectOctopus\\agent-go\\server-env.yaml") + //yamlFile, err := ioutil.ReadFile("C:\\Users\\wdd\\IdeaProjects\\ProjectOctopus\\agent-go\\server-env.yaml") + yamlFile, err := ioutil.ReadFile("server-env.yaml") + if err != nil { panic(fmt.Errorf("failed to read YAML file: %v", err)) }