mirror of
https://github.com/portainer/portainer.git
synced 2026-08-07 11:34:47 +00:00
feat(customtemplates): use Sources for CustomTemplates BE-12919 (#2759)
This commit is contained in:
@@ -74,10 +74,7 @@ func (handler *Handler) customTemplateList(w http.ResponseWriter, r *http.Reques
|
||||
}
|
||||
|
||||
for i := range customTemplates {
|
||||
customTemplate := &customTemplates[i]
|
||||
if customTemplate.GitConfig != nil && customTemplate.GitConfig.Authentication != nil {
|
||||
customTemplate.GitConfig.Authentication.Password = ""
|
||||
}
|
||||
populateGitConfig(handler.DataStore, &customTemplates[i])
|
||||
}
|
||||
|
||||
return response.JSON(w, customTemplates)
|
||||
|
||||
Reference in New Issue
Block a user