mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
plugin: updated coredhcp to match interface
This commit is contained in:
parent
4572418dfa
commit
41aa0c7a42
1 changed files with 2 additions and 5 deletions
|
|
@ -1,12 +1,9 @@
|
||||||
//go:build coredhcp || plugins
|
|
||||||
// +build coredhcp plugins
|
|
||||||
|
|
||||||
package generator
|
package generator
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
configurator "github.com/OpenCHAMI/configurator/pkg"
|
"github.com/OpenCHAMI/configurator/pkg/config"
|
||||||
"github.com/OpenCHAMI/configurator/pkg/util"
|
"github.com/OpenCHAMI/configurator/pkg/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -24,6 +21,6 @@ func (g *CoreDhcp) GetDescription() string {
|
||||||
return fmt.Sprintf("Configurator generator plugin for '%s' to generate config files. (WIP)", g.GetName())
|
return fmt.Sprintf("Configurator generator plugin for '%s' to generate config files. (WIP)", g.GetName())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g *CoreDhcp) Generate(config *configurator.Config, opts ...util.Option) (FileMap, error) {
|
func (g *CoreDhcp) Generate(config *config.Config, params Params) (FileMap, error) {
|
||||||
return nil, fmt.Errorf("plugin does not implement generation function")
|
return nil, fmt.Errorf("plugin does not implement generation function")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue