Commit fedeac77 authored by jackgr's avatar jackgr

Set default repo format and type

parent b51c3a8e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment