Update config machines to targets. Get refs from plugin sdk
This commit is contained in:
parent
3f86194f60
commit
dcb6f4a9be
@ -14,7 +14,7 @@ type Basis struct {
|
||||
|
||||
// These should _roughly_ map to existing Vagrantfile configurations
|
||||
Vagrant *Vagrant `hcl:"vagrant,block"`
|
||||
Machines []*Machine `hcl:"machine,block"`
|
||||
Targets []*Target `hcl:"target,block"`
|
||||
Communicators []*Communicator `hcl:"communicator,block"`
|
||||
|
||||
Body hcl.Body `hcl:",body"`
|
||||
|
||||
@ -3,7 +3,7 @@ package config
|
||||
import (
|
||||
"github.com/hashicorp/hcl/v2"
|
||||
|
||||
"github.com/hashicorp/vagrant/internal/server/proto/vagrant_server"
|
||||
"github.com/hashicorp/vagrant-plugin-sdk/proto/vagrant_plugin_sdk"
|
||||
)
|
||||
|
||||
type Project struct {
|
||||
@ -21,11 +21,11 @@ type Project struct {
|
||||
Remain hcl.Body `hcl:",remain"`
|
||||
|
||||
path string
|
||||
ref *vagrant_server.Ref_Project
|
||||
ref *vagrant_plugin_sdk.Ref_Project
|
||||
config *Config
|
||||
}
|
||||
|
||||
func (p *Project) Ref() *vagrant_server.Ref_Project {
|
||||
func (p *Project) Ref() *vagrant_plugin_sdk.Ref_Project {
|
||||
return p.ref
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user