Upated plugin implementations return type
This commit is contained in:
parent
871776ca84
commit
7494468bed
8 changed files with 13 additions and 10 deletions
|
|
@ -4,6 +4,7 @@ import (
|
|||
"fmt"
|
||||
|
||||
configurator "github.com/OpenCHAMI/configurator/internal"
|
||||
"github.com/OpenCHAMI/configurator/internal/generator"
|
||||
"github.com/OpenCHAMI/configurator/internal/util"
|
||||
)
|
||||
|
||||
|
|
@ -21,7 +22,7 @@ func (g *Hostfile) GetDescription() string {
|
|||
return fmt.Sprintf("Configurator generator plugin for '%s'.", g.GetName())
|
||||
}
|
||||
|
||||
func (g *Hostfile) Generate(config *configurator.Config, opts ...util.Option) (map[string][]byte, error) {
|
||||
func (g *Hostfile) Generate(config *configurator.Config, opts ...util.Option) (generator.Files, error) {
|
||||
return nil, fmt.Errorf("plugin does not implement generation function")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue