Return a box from a machine

This commit is contained in:
sophia 2021-07-14 17:05:34 -05:00 committed by Paul Hinze
parent 70a9f2b0d5
commit a968b23636
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -34,10 +34,9 @@ func (m *Machine) SetID(value string) (err error) {
return m.SaveMachine()
}
// Box implements core.Machine
func (m *Machine) Box() (b core.Box, err error) {
// TODO
return
func (m *Machine) Box() (b *core.Box, err error) {
var result core.Box
return &result, mapstructure.Decode(m.machine.Box, &result)
}
// Guest implements core.Machine