Set default repo format and type

pull/486/head
jackgr 9 years ago
parent b51c3a8ee2
commit fedeac77a0

@ -58,6 +58,14 @@ func addChartRepoHandlerFunc(w http.ResponseWriter, r *http.Request, c *router.C
return nil
}
if string(cr.Format) == "" {
cr.Type = repo.GCSRepoType
}
if string(cr.Type) == "" {
cr.Type = repo.GCSRepoType
}
if err := c.Manager.AddRepo(cr); err != nil {
httputil.BadRequest(w, r, err)
return nil

Loading…
Cancel
Save