Update config machines to targets. Get refs from plugin sdk

This commit is contained in:
Chris Roberts 2021-05-17 16:39:40 -07:00 committed by Paul Hinze
parent 3f86194f60
commit dcb6f4a9be
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 4 additions and 4 deletions

View File

@ -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"`

View File

@ -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
}