Skip to content

Commit

Permalink
Merge pull request #86 from stgraber/master
Browse files Browse the repository at this point in the history
#86

Closes https://bugs.launchpad.net/gomaasapi/+bug/1881647

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
jujubot authored Jun 2, 2020
2 parents 0ab1eb6 + e33c540 commit aa56136
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ func (m *machine) Start(args StartArgs) error {
// given VLAN. On failure, returns an error satisfying errors.IsNotValid().
type CreateMachineDeviceArgs struct {
Hostname string
Domain string
InterfaceName string
MACAddress string
Subnet Subnet
Expand Down Expand Up @@ -327,6 +328,7 @@ func (m *machine) CreateDevice(args CreateMachineDeviceArgs) (_ Device, err erro
}
device, err := m.controller.CreateDevice(CreateDeviceArgs{
Hostname: args.Hostname,
Domain: args.Domain,
MACAddresses: []string{args.MACAddress},
Parent: m.SystemID(),
})
Expand Down

0 comments on commit aa56136

Please sign in to comment.