Make myplugin have parents darwin and bsd

This commit is contained in:
sophia 2021-10-18 16:18:53 -05:00 committed by Paul Hinze
parent bff3af4a00
commit cda3ba7b29
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
3 changed files with 2 additions and 3 deletions

View File

@ -39,7 +39,7 @@ func (h *AlwaysTrueHost) ParentsFunc() interface{} {
}
func (h *AlwaysTrueHost) Parents() []string {
return []string{}
return []string{"darwin", "bsd", "force", "host", "platform", "match"}
}
// HasCapabilityFunc implements component.Host

View File

@ -100,7 +100,6 @@ func (p *Plugin) SetParentPlugins(typ component.Type) {
for _, pp := range p.ParentPlugins {
parentComponents = append(parentComponents, pp.components[typ].Component)
}
// TODO: set parent plugins
pluginWithParent.SetParentPlugins(parentComponents)
}
}

View File

@ -6,7 +6,7 @@ module VagrantPlugins
name "BSD host"
description "BSD host support."
host("bsd", "myplugin") do
host("bsd") do
require File.expand_path("../host", __FILE__)
Host
end