Browse Source

Merge pull request #1294 from porter-dev/staging

Get template fix -> production
abelanger5 4 years ago
parent
commit
f613254db4
1 changed files with 4 additions and 0 deletions
  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 {