From 8f41ac456fc92a9ec333579498e9933d73404905 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Tue, 20 Jun 2017 22:29:59 +0200 Subject: Remove duplicate fields and set default SDK dir. - Removed duplicate fields between Config and FileConfig - set /xdt/sdk as default SDK directory --- lib/apiv1/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/apiv1/agent.go') diff --git a/lib/apiv1/agent.go b/lib/apiv1/agent.go index d8feb61..b693608 100644 --- a/lib/apiv1/agent.go +++ b/lib/apiv1/agent.go @@ -27,7 +27,7 @@ func (s *APIService) getXdsAgentInfo(c *gin.Context) { res := XDSAgentInfo{} tarballURL := "assets/xds-agent-tarballs" - tarballDir := filepath.Join(s.cfg.WebAppDir, "assets", "xds-agent-tarballs") + tarballDir := filepath.Join(s.cfg.FileConf.WebAppDir, "assets", "xds-agent-tarballs") if common.Exists(tarballDir) { files, err := filepath.Glob(path.Join(tarballDir, "xds-agent_*.zip")) if err != nil { -- cgit 1.2.3-korg