From 982072494e1c9fca54c25f7cae635e452e4abce5 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Thu, 30 Jun 2022 15:49:48 +0200 Subject: [PATCH] Try 07 --- pkg/templater/main.go | 4 +++- pkg/templater/services.go | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/templater/main.go b/pkg/templater/main.go index e390e3a..f070ad3 100644 --- a/pkg/templater/main.go +++ b/pkg/templater/main.go @@ -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 } diff --git a/pkg/templater/services.go b/pkg/templater/services.go index 5946b1d..971c05b 100644 --- a/pkg/templater/services.go +++ b/pkg/templater/services.go @@ -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)