mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
changed 'output' to 'dhcp_hosts' in dhcp plugin and README
This commit is contained in:
parent
531ad8881d
commit
8915a28258
2 changed files with 3 additions and 3 deletions
|
|
@ -142,14 +142,14 @@ func (g *MyGenerator) Generate(config *configurator.Config, opts ...util.Option)
|
|||
if client {
|
||||
eths, err := client.FetchEthernetInterfaces(opts...)
|
||||
// ... blah, blah, blah, check error, format output, and so on...
|
||||
}
|
||||
|
||||
|
||||
// apply the substitutions to Jinja template and return output as FileMap (i.e. path and it's contents)
|
||||
return generator.ApplyTemplate(path, generator.Mappings{
|
||||
"plugin_name": g.GetName(),
|
||||
"plugin_version": g.GetVersion(),
|
||||
"plugin_description": g.GetDescription(),
|
||||
"output": output,
|
||||
"dhcp_hosts": output,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -66,6 +66,6 @@ func (g *DNSMasq) Generate(config *config.Config, params Params) (FileMap, error
|
|||
"plugin_name": g.GetName(),
|
||||
"plugin_version": g.GetVersion(),
|
||||
"plugin_description": g.GetDescription(),
|
||||
"output": output,
|
||||
"dhcp_hosts": output,
|
||||
}, params.Templates)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue