chore: tidy and code cleanup

This commit is contained in:
David Allen 2024-12-10 18:31:03 -07:00
parent d2b6178350
commit ad45a540f0
Signed by: towk
GPG key ID: 793B2924A49B3A3F
6 changed files with 7 additions and 14 deletions

View file

@ -54,10 +54,6 @@ func (g *DHCPd) Generate(config *config.Config, params Params) (FileMap, error)
computeNodes += fmt.Sprintf("host %s { hardware ethernet %s; fixed-address %s} ", eth.ComponentId, eth.MacAddress, eth.IpAddresses[0])
}
computeNodes += "# ====================================================================="
if params.Verbose {
fmt.Printf("")
}
return ApplyTemplates(Mappings{
"plugin_name": g.GetName(),
"plugin_version": g.GetVersion(),

View file

@ -143,7 +143,7 @@ func LoadPlugins(dirpath string, opts ...Option) (map[string]Generator, error) {
// show the plugins found if verbose flag is set
if params.Verbose {
fmt.Printf("-- found plugin '%s'\n", gen.GetName())
log.Info().Str("plugin_name", gen.GetName()).Msg("found plugin")
}
// map each generator plugin by name for lookup