Return a box from a machine
This commit is contained in:
parent
70a9f2b0d5
commit
a968b23636
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user