Get box from machine

This commit is contained in:
sophia 2021-11-09 14:14:20 -06:00 committed by Paul Hinze
parent a2002f66fb
commit f3b6f615ab
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -37,8 +37,11 @@ func (m *Machine) SetID(value string) (err error) {
}
func (m *Machine) Box() (b core.Box, err error) {
var result core.Box
return result, mapstructure.Decode(m.machine.Box, &result)
return &Box{
basis: m.project.basis,
box: m.machine.Box,
logger: m.logger,
}, nil
}
// Guest implements core.Machine