Explorar o código

Merge pull request #1294 from porter-dev/staging

Get template fix -> production
abelanger5 %!s(int64=4) %!d(string=hai) anos
pai
achega
f613254db4
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      api/server/handlers/template/get.go

+ 4 - 0
api/server/handlers/template/get.go

@@ -45,6 +45,10 @@ func (t *TemplateGetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 		version = ""
 	}
 
+	if request.RepoURL == "" {
+		request.RepoURL = t.Config().ServerConf.DefaultApplicationHelmRepoURL
+	}
+
 	chart, err := loader.LoadChartPublic(request.RepoURL, name, version)
 
 	if err != nil {