Skip to content

Commit 41b095f

Browse files
authored
feat(baremetal): add support for install in the create command (#2331)
1 parent f46f4bb commit 41b095f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/namespaces/baremetal/v1/custom_server_create.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ func serverCreateBuilder(c *core.Command) *core.Command {
2525
Tags []string `json:"tags"`
2626
// Type of the server
2727
Type string
28+
// Installation configuration
29+
Install *baremetal.CreateServerRequestInstall
2830
}
2931

3032
c.ArgsType = reflect.TypeOf(baremetalCreateServerRequestCustom{})
@@ -53,6 +55,10 @@ func serverCreateBuilder(c *core.Command) *core.Command {
5355
Tags: tmpRequest.Tags,
5456
}
5557

58+
if tmpRequest.Install != nil {
59+
request.Install = tmpRequest.Install
60+
}
61+
5662
// We need to find the offer ID.
5763
// While baremetal does not have list offer name filter we are forced to iterate
5864
// on the list of offers provided.

0 commit comments

Comments
 (0)