Use updated function names for fetching plugins from manager

This commit is contained in:
Chris Roberts 2021-07-26 14:35:36 -07:00 committed by Paul Hinze
parent 4c8dc9a01c
commit a8f8178b59
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -487,7 +487,7 @@ func (b *Basis) component(
if typ == component.CommandType {
name = strings.Split(name, " ")[0]
}
p, err := b.plugins.ByName(name, typ)
p, err := b.plugins.Find(name, typ)
if err != nil {
return nil, err
}
@ -518,7 +518,7 @@ func (b *Basis) typeComponents(
typ component.Type, // type of the components,
) (map[string]*Component, error) {
result := map[string]*Component{}
plugins, err := b.plugins.ByType(typ)
plugins, err := b.plugins.Typed(typ)
if err != nil {
return nil, err
}