Skip to content

Commit

Permalink
feat(baremetal): add support for install in the create command (#2331)
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Jun 2, 2022
1 parent f46f4bb commit 41b095f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/namespaces/baremetal/v1/custom_server_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ func serverCreateBuilder(c *core.Command) *core.Command {
Tags []string `json:"tags"`
// Type of the server
Type string
// Installation configuration
Install *baremetal.CreateServerRequestInstall
}

c.ArgsType = reflect.TypeOf(baremetalCreateServerRequestCustom{})
Expand Down Expand Up @@ -53,6 +55,10 @@ func serverCreateBuilder(c *core.Command) *core.Command {
Tags: tmpRequest.Tags,
}

if tmpRequest.Install != nil {
request.Install = tmpRequest.Install
}

// We need to find the offer ID.
// While baremetal does not have list offer name filter we are forced to iterate
// on the list of offers provided.
Expand Down

0 comments on commit 41b095f

Please sign in to comment.