Skip to content

Commit

Permalink
Fix FSL not considered from client requests for machine creation. (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Jan 12, 2022
1 parent f457c47 commit 4764ed4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
33 changes: 17 additions & 16 deletions cmd/metal-api/internal/service/machine-service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1010,22 +1010,23 @@ func createMachineAllocationSpec(ds *datastore.RethinkStore, requestPayload v1.M
}

return &machineAllocationSpec{
Creator: user.EMail,
UUID: uuid,
Name: name,
Description: description,
Hostname: hostname,
ProjectID: requestPayload.ProjectID,
PartitionID: partitionID,
Machine: m,
Size: size,
Image: image,
SSHPubKeys: requestPayload.SSHPubKeys,
UserData: userdata,
Tags: requestPayload.Tags,
Networks: requestPayload.Networks,
IPs: requestPayload.IPs,
Role: role,
Creator: user.EMail,
UUID: uuid,
Name: name,
Description: description,
Hostname: hostname,
ProjectID: requestPayload.ProjectID,
PartitionID: partitionID,
Machine: m,
Size: size,
Image: image,
SSHPubKeys: requestPayload.SSHPubKeys,
UserData: userdata,
Tags: requestPayload.Tags,
Networks: requestPayload.Networks,
IPs: requestPayload.IPs,
Role: role,
FilesystemLayoutID: requestPayload.FilesystemLayoutID,
}, nil
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v1/supwd.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/api/v1/wait.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4764ed4

Please sign in to comment.