This commit is contained in:
Philippe Caseiro 2022-06-30 15:49:48 +02:00
parent fbbadce952
commit 982072494e
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@ package templater
import (
"fmt"
"io/ioutil"
"log"
"os"
"github.com/imdario/mergo"
@ -76,7 +77,8 @@ func (tc *TemplaterConfig) New(confpath string, templateDir string) error {
}
func (tc *TemplaterConfig) ManageServices(rootDir string) error {
for _, svr := range tc.Services {
for name, svr := range tc.Services {
log.Printf("Working on service %s", name)
if err := svr.Manage(tc.TemplateDirectory, rootDir); err != nil {
return err
}

View File

@ -42,7 +42,6 @@ func (s *Service) manageRepos(repos map[string]Repository) error {
}
func (s *Service) Manage(templateDir string, rootDir string) error {
// Manage packages repositories
log.Print("Managing package repositories")
err := s.manageRepos(s.Repos)