Rename IndexUUID to GetUUID for consistency

This commit is contained in:
sophia 2021-07-13 14:10:29 -05:00 committed by Paul Hinze
parent cfcaeafec2
commit 0aa15c0759
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 7 additions and 5 deletions

View File

@ -21,7 +21,7 @@ func (m *Machine) ID() (id string, err error) {
// SetID implements core.Machine
func (m *Machine) SetID(value string) (err error) {
m.target.Uuid = value
return
return m.Save()
}
// Box implements core.Machine
@ -31,17 +31,18 @@ func (m *Machine) Box() (b core.Box, err error) {
// Guest implements core.Machine
func (m *Machine) Guest() (g core.Guest, err error) {
// TODO: need Vagrantfile + communicator
return
}
// IndexUUID implements core.Machine
func (m *Machine) IndexUUID() (id string, err error) {
return
func (m *Machine) GetUUID() (id string, err error) {
return m.target.Uuid, nil
}
// SetUUID implements core.Machine
func (m *Machine) SetUUID(id string) (err error) {
return
m.target.Uuid = id
return m.Save()
}
// Inspect implements core.Machine

View File

@ -81,6 +81,7 @@ func (t *Target) VagrantfilePath() (p path.Path, err error) {
// Communicate implements core.Target
func (t *Target) Communicate() (c core.Communicator, err error) {
// TODO: need vagrantfile info
return
}