mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Make myplugin have parents darwin and bsd
This commit is contained in:
parent
bff3af4a00
commit
cda3ba7b29
3 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue